Skip to content

Commit

Permalink
feat: replace with useNonStandardTexts
Browse files Browse the repository at this point in the history
  • Loading branch information
marco-prontera committed Aug 11, 2023
1 parent 77ffbe1 commit e8ca1ab
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion modules/cli/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ if (encoded) {

print('policyVersion', tcModel.policyVersion);
print('isServiceSpecific', tcModel.isServiceSpecific);
print('useNonStandardStacks', tcModel.useNonStandardStacks);
print('useNonStandardTexts', tcModel.useNonStandardTexts);
print('purposeOneTreatment', tcModel.purposeOneTreatment);
print('publisherCountryCode', tcModel.publisherCountryCode);

Expand Down
4 changes: 2 additions & 2 deletions modules/cmpapi/src/response/TCData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export class TCData extends Response {
public eventStatus: EventStatus;
public cmpStatus: CmpStatus;
public isServiceSpecific: Booleany;
public useNonStandardStacks: Booleany;
public useNonStandardTexts: Booleany;
public publisherCC: string;
public purposeOneTreatment: Booleany;

Expand Down Expand Up @@ -76,7 +76,7 @@ export class TCData extends Response {

this.tcString = CmpApiModel.tcString;
this.isServiceSpecific = tcModel.isServiceSpecific;
this.useNonStandardStacks = tcModel.useNonStandardStacks;
this.useNonStandardTexts = tcModel.useNonStandardTexts;
this.purposeOneTreatment = tcModel.purposeOneTreatment;
this.publisherCC = tcModel.publisherCountryCode;

Expand Down
10 changes: 5 additions & 5 deletions modules/core/src/TCModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export class TCModel extends Cloneable<TCModel> {

private isServiceSpecific_ = false;
private supportOOB_ = true;
private useNonStandardStacks_ = false;
private useNonStandardTexts_ = false;
private purposeOneTreatment_ = false;
private publisherCountryCode_ = 'AA';
private version_ = 2;
Expand Down Expand Up @@ -434,15 +434,15 @@ export class TCModel extends Cloneable<TCModel> {
*
* @param {boolean} bool - value to set
*/
public set useNonStandardStacks(bool: boolean) {
public set useNonStandardTexts(bool: boolean) {

this.useNonStandardStacks_ = bool;
this.useNonStandardTexts_ = bool;

}

public get useNonStandardStacks(): boolean {
public get useNonStandardTexts(): boolean {

return this.useNonStandardStacks_;
return this.useNonStandardTexts_;

}

Expand Down
2 changes: 1 addition & 1 deletion modules/core/src/encoder/BitLength.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export class BitLength {
public static readonly [Fields.purposeLegitimateInterests]: number = 24;
public static readonly [Fields.purposeOneTreatment]: number = 1;
public static readonly [Fields.specialFeatureOptins]: number = 12;
public static readonly [Fields.useNonStandardStacks]: number = 1;
public static readonly [Fields.useNonStandardTexts]: number = 1;
public static readonly [Fields.vendorListVersion]: number = 12;
public static readonly [Fields.version]: number = 6;

Expand Down
2 changes: 1 addition & 1 deletion modules/core/src/encoder/field/FieldEncoderMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export function FieldEncoderMap(): object {
[Fields.vendorListVersion]: IntEncoder,
[Fields.policyVersion]: IntEncoder,
[Fields.isServiceSpecific]: BooleanEncoder,
[Fields.useNonStandardStacks]: BooleanEncoder,
[Fields.useNonStandardTexts]: BooleanEncoder,
[Fields.specialFeatureOptins]: FixedVectorEncoder,
[Fields.purposeConsents]: FixedVectorEncoder,
[Fields.purposeLegitimateInterests]: FixedVectorEncoder,
Expand Down
2 changes: 1 addition & 1 deletion modules/core/src/encoder/sequence/FieldSequence.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class FieldSequence implements SequenceVersionMap {
Fields.vendorListVersion,
Fields.policyVersion,
Fields.isServiceSpecific,
Fields.useNonStandardStacks,
Fields.useNonStandardTexts,
Fields.specialFeatureOptins,
Fields.purposeConsents,
Fields.purposeLegitimateInterests,
Expand Down
2 changes: 1 addition & 1 deletion modules/core/src/model/Fields.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export class Fields {
public static readonly purposeLegitimateInterests: 'purposeLegitimateInterests' = 'purposeLegitimateInterests';
public static readonly purposeOneTreatment: 'purposeOneTreatment' = 'purposeOneTreatment';
public static readonly specialFeatureOptins: 'specialFeatureOptins' = 'specialFeatureOptins';
public static readonly useNonStandardStacks: 'useNonStandardStacks' = 'useNonStandardStacks';
public static readonly useNonStandardTexts: 'useNonStandardTexts' = 'useNonStandardTexts';
public static readonly vendorConsents: 'vendorConsents' = 'vendorConsents';
public static readonly vendorLegitimateInterests: 'vendorLegitimateInterests' = 'vendorLegitimateInterests';
public static readonly vendorListVersion: 'vendorListVersion' = 'vendorListVersion';
Expand Down

0 comments on commit e8ca1ab

Please sign in to comment.