@azzas/azzas-tracker-web 2.0.3-preview.3 → 2.0.3-preview.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/mod.d.cts CHANGED
@@ -63,7 +63,7 @@ declare const EVENTS: {
63
63
  readonly name: "select_promotion";
64
64
  readonly hasEcommerce: true;
65
65
  readonly destinations: readonly ["DataLayer"];
66
- readonly requiredParams: readonly ["brand", "region", "currency", "promotion_name", "promotion_url", "creative_slot", "creative_name"];
66
+ readonly requiredParams: readonly ["brand", "region", "currency", "promotion_name", "creative_slot", "creative_name"];
67
67
  };
68
68
  SELECT_CONTENT: {
69
69
  readonly name: "select_content";
@@ -952,6 +952,274 @@ type ProductType_Minicart = {
952
952
  offerings: OfferingItem[];
953
953
  };
954
954
 
955
+ type OriginalProductQueryQuery = ClientProductQueryQuery["product"];
956
+ type OriginalVariantOf = OriginalProductQueryQuery["isVariantOf"];
957
+ type NewAvailableVariations = {
958
+ [key: string]: Array<{
959
+ value: string;
960
+ src: string;
961
+ label: string;
962
+ alt: string;
963
+ }>;
964
+ };
965
+ type ExtendedSkuVariants = {
966
+ activeVariations: any | null;
967
+ slugsMap: any | null;
968
+ availableVariations: NewAvailableVariations;
969
+ };
970
+ type ClientProductQueryQuery = {
971
+ product: {
972
+ sku: string;
973
+ name: string;
974
+ gtin: string;
975
+ description: string;
976
+ unitMultiplier: number | null;
977
+ id: string;
978
+ isVariantOf: {
979
+ name: string;
980
+ productGroupID: string;
981
+ skuVariants: {
982
+ activeVariations: any | null;
983
+ slugsMap: any | null;
984
+ availableVariations: any | null;
985
+ } | null;
986
+ };
987
+ image: Array<{
988
+ url: string;
989
+ alternateName: string;
990
+ }>;
991
+ brand: {
992
+ name: string;
993
+ };
994
+ offers: {
995
+ lowPrice: number;
996
+ lowPriceWithTaxes: number;
997
+ offers: Array<{
998
+ availability: string;
999
+ price: number;
1000
+ priceWithTaxes: number;
1001
+ listPrice: number;
1002
+ listPriceWithTaxes: number;
1003
+ seller: {
1004
+ identifier: string;
1005
+ };
1006
+ }>;
1007
+ };
1008
+ additionalProperty: Array<{
1009
+ propertyID: string;
1010
+ name: string;
1011
+ value: any;
1012
+ valueReference: any;
1013
+ }>;
1014
+ };
1015
+ };
1016
+ interface AnimalePDCProduct {
1017
+ index: number;
1018
+ item_list_name: string;
1019
+ additionalProperty: Array<{
1020
+ name: string;
1021
+ propertyID: string;
1022
+ value: string;
1023
+ valueReference: string;
1024
+ }>;
1025
+ specificationGroups: Array<{
1026
+ name: string;
1027
+ specifications: Array<{
1028
+ name: string;
1029
+ values: Array<string>;
1030
+ }>;
1031
+ }>;
1032
+ categories: string[];
1033
+ categoriesIds: string[];
1034
+ breadcrumbList: {
1035
+ itemListElement: Array<{
1036
+ item: string;
1037
+ position: number;
1038
+ name: string;
1039
+ }>;
1040
+ };
1041
+ brand: {
1042
+ brandName: string;
1043
+ name: string;
1044
+ };
1045
+ gtin: string;
1046
+ image: Array<{
1047
+ alternateName: string;
1048
+ url: string;
1049
+ }>;
1050
+ isVariantOf: {
1051
+ name: string;
1052
+ productGroupID: string;
1053
+ hasVariant: {
1054
+ additionalProperty: Array<{
1055
+ name: string;
1056
+ propertyID: string;
1057
+ value: string;
1058
+ valueReference: string;
1059
+ }>;
1060
+ gtin: string;
1061
+ image: Array<{
1062
+ alternateName: string;
1063
+ url: string;
1064
+ }>;
1065
+ clusterHighlights: {
1066
+ id: string;
1067
+ name: string;
1068
+ }[];
1069
+ productClusters: {
1070
+ id: string;
1071
+ name: string;
1072
+ }[];
1073
+ isVariantOf: {
1074
+ name: string;
1075
+ productGroupID: string;
1076
+ skuVariants: {
1077
+ activeVariations: {
1078
+ Tamanho: string;
1079
+ };
1080
+ availableVariations: string[];
1081
+ slugsMap: {
1082
+ [key: string]: string;
1083
+ };
1084
+ };
1085
+ };
1086
+ brand: {
1087
+ name: string;
1088
+ };
1089
+ productID: string;
1090
+ seo: {
1091
+ canonical: string;
1092
+ };
1093
+ unitMultiplier: number;
1094
+ name: string;
1095
+ sku: string;
1096
+ offers: {
1097
+ highPrice: number;
1098
+ lowPrice: number;
1099
+ offers: {
1100
+ availability: string;
1101
+ seller: {
1102
+ identifier: string;
1103
+ };
1104
+ listPrice: number;
1105
+ price: number;
1106
+ quantity: number;
1107
+ sellingPrice: number;
1108
+ }[];
1109
+ };
1110
+ }[];
1111
+ };
1112
+ name: string;
1113
+ offers: {
1114
+ highPrice: number;
1115
+ lowPrice: number;
1116
+ offers: Array<{
1117
+ listPrice: number;
1118
+ price: number;
1119
+ quantity: number;
1120
+ sellingPrice: number;
1121
+ }>;
1122
+ };
1123
+ id: string;
1124
+ sku: string;
1125
+ slug: string;
1126
+ }
1127
+ interface ExtendedVariantOf extends OriginalVariantOf {
1128
+ hasVariant: {
1129
+ additionalProperty: {
1130
+ propertyID: string;
1131
+ name: string;
1132
+ value: string;
1133
+ valueReference: string;
1134
+ }[];
1135
+ name: string;
1136
+ sku: string;
1137
+ productID: string;
1138
+ slug: string;
1139
+ seo: {
1140
+ canonical: string;
1141
+ };
1142
+ brand: {
1143
+ name: string;
1144
+ };
1145
+ gtin: string;
1146
+ image: {
1147
+ url: string;
1148
+ alternateName: string;
1149
+ }[];
1150
+ isVariantOf: OriginalVariantOf;
1151
+ unitMultiplier: number;
1152
+ offers: {
1153
+ offers: Array<{
1154
+ availability: string;
1155
+ quantity: number;
1156
+ price: number;
1157
+ listPrice: number;
1158
+ seller: {
1159
+ identifier: string;
1160
+ };
1161
+ }>;
1162
+ };
1163
+ }[];
1164
+ skuVariants: ExtendedSkuVariants;
1165
+ }
1166
+ interface AnimalePDPProduct extends OriginalProductQueryQuery {
1167
+ index: number;
1168
+ item_list_name: string;
1169
+ specificationGroups: Array<{
1170
+ name: string;
1171
+ specifications: Array<{
1172
+ name: string;
1173
+ values: Array<string>;
1174
+ }>;
1175
+ }>;
1176
+ breadcrumbList: {
1177
+ itemListElement: Array<{
1178
+ item: string;
1179
+ position: number;
1180
+ name: string;
1181
+ }>;
1182
+ };
1183
+ fullSellers: Array<{
1184
+ commertialOffer: {
1185
+ AvailableQuantity: number;
1186
+ DiscountPercent: number | null;
1187
+ Installments: Array<{
1188
+ InterestRate: number;
1189
+ Name: string;
1190
+ NumberOfInstallments: number;
1191
+ TotalValuePlusInterestRate: number;
1192
+ Value: number;
1193
+ }>;
1194
+ ListPrice: number;
1195
+ Price: number;
1196
+ PriceWithoutDiscount: number;
1197
+ };
1198
+ sellerDefault: boolean;
1199
+ sellerId: string;
1200
+ sellerName: string;
1201
+ }>;
1202
+ seo: {
1203
+ canonical: string;
1204
+ description: string;
1205
+ title: string;
1206
+ };
1207
+ productClusters: Array<{
1208
+ id: string;
1209
+ name: string;
1210
+ }>;
1211
+ isVariantOf: ExtendedVariantOf;
1212
+ slug: string;
1213
+ productReference: string;
1214
+ itemsSellers: Array<{
1215
+ id: string;
1216
+ sellerDefault: {
1217
+ sellerId: string;
1218
+ sellerName: string;
1219
+ };
1220
+ }>;
1221
+ }
1222
+
955
1223
  interface MarketingData {
956
1224
  utmSource: string | undefined;
957
1225
  utmMedium: string | undefined;
@@ -1594,6 +1862,14 @@ type AdapterPayload = ({
1594
1862
  adapter: 'PICKUP';
1595
1863
  flag_pickup: boolean;
1596
1864
  shippings: Sla[];
1865
+ } | {
1866
+ adapter: 'ANIMALE';
1867
+ zone: 'PDP';
1868
+ products: (AnimalePDPProduct & ProductMeta)[];
1869
+ } | {
1870
+ adapter: 'ANIMALE';
1871
+ zone: 'PDC';
1872
+ products: (AnimalePDCProduct & ProductMeta)[];
1597
1873
  } | {
1598
1874
  adapter: 'HEADLESS';
1599
1875
  zone: 'PDP';
@@ -1686,7 +1962,7 @@ declare const _default: {
1686
1962
  readonly name: "select_promotion";
1687
1963
  readonly hasEcommerce: true;
1688
1964
  readonly destinations: readonly ["DataLayer"];
1689
- readonly requiredParams: readonly ["brand", "region", "currency", "promotion_name", "promotion_url", "creative_slot", "creative_name"];
1965
+ readonly requiredParams: readonly ["brand", "region", "currency", "promotion_name", "creative_slot", "creative_name"];
1690
1966
  };
1691
1967
  SELECT_CONTENT: {
1692
1968
  readonly name: "select_content";
package/dist/mod.d.ts CHANGED
@@ -63,7 +63,7 @@ declare const EVENTS: {
63
63
  readonly name: "select_promotion";
64
64
  readonly hasEcommerce: true;
65
65
  readonly destinations: readonly ["DataLayer"];
66
- readonly requiredParams: readonly ["brand", "region", "currency", "promotion_name", "promotion_url", "creative_slot", "creative_name"];
66
+ readonly requiredParams: readonly ["brand", "region", "currency", "promotion_name", "creative_slot", "creative_name"];
67
67
  };
68
68
  SELECT_CONTENT: {
69
69
  readonly name: "select_content";
@@ -952,6 +952,274 @@ type ProductType_Minicart = {
952
952
  offerings: OfferingItem[];
953
953
  };
954
954
 
955
+ type OriginalProductQueryQuery = ClientProductQueryQuery["product"];
956
+ type OriginalVariantOf = OriginalProductQueryQuery["isVariantOf"];
957
+ type NewAvailableVariations = {
958
+ [key: string]: Array<{
959
+ value: string;
960
+ src: string;
961
+ label: string;
962
+ alt: string;
963
+ }>;
964
+ };
965
+ type ExtendedSkuVariants = {
966
+ activeVariations: any | null;
967
+ slugsMap: any | null;
968
+ availableVariations: NewAvailableVariations;
969
+ };
970
+ type ClientProductQueryQuery = {
971
+ product: {
972
+ sku: string;
973
+ name: string;
974
+ gtin: string;
975
+ description: string;
976
+ unitMultiplier: number | null;
977
+ id: string;
978
+ isVariantOf: {
979
+ name: string;
980
+ productGroupID: string;
981
+ skuVariants: {
982
+ activeVariations: any | null;
983
+ slugsMap: any | null;
984
+ availableVariations: any | null;
985
+ } | null;
986
+ };
987
+ image: Array<{
988
+ url: string;
989
+ alternateName: string;
990
+ }>;
991
+ brand: {
992
+ name: string;
993
+ };
994
+ offers: {
995
+ lowPrice: number;
996
+ lowPriceWithTaxes: number;
997
+ offers: Array<{
998
+ availability: string;
999
+ price: number;
1000
+ priceWithTaxes: number;
1001
+ listPrice: number;
1002
+ listPriceWithTaxes: number;
1003
+ seller: {
1004
+ identifier: string;
1005
+ };
1006
+ }>;
1007
+ };
1008
+ additionalProperty: Array<{
1009
+ propertyID: string;
1010
+ name: string;
1011
+ value: any;
1012
+ valueReference: any;
1013
+ }>;
1014
+ };
1015
+ };
1016
+ interface AnimalePDCProduct {
1017
+ index: number;
1018
+ item_list_name: string;
1019
+ additionalProperty: Array<{
1020
+ name: string;
1021
+ propertyID: string;
1022
+ value: string;
1023
+ valueReference: string;
1024
+ }>;
1025
+ specificationGroups: Array<{
1026
+ name: string;
1027
+ specifications: Array<{
1028
+ name: string;
1029
+ values: Array<string>;
1030
+ }>;
1031
+ }>;
1032
+ categories: string[];
1033
+ categoriesIds: string[];
1034
+ breadcrumbList: {
1035
+ itemListElement: Array<{
1036
+ item: string;
1037
+ position: number;
1038
+ name: string;
1039
+ }>;
1040
+ };
1041
+ brand: {
1042
+ brandName: string;
1043
+ name: string;
1044
+ };
1045
+ gtin: string;
1046
+ image: Array<{
1047
+ alternateName: string;
1048
+ url: string;
1049
+ }>;
1050
+ isVariantOf: {
1051
+ name: string;
1052
+ productGroupID: string;
1053
+ hasVariant: {
1054
+ additionalProperty: Array<{
1055
+ name: string;
1056
+ propertyID: string;
1057
+ value: string;
1058
+ valueReference: string;
1059
+ }>;
1060
+ gtin: string;
1061
+ image: Array<{
1062
+ alternateName: string;
1063
+ url: string;
1064
+ }>;
1065
+ clusterHighlights: {
1066
+ id: string;
1067
+ name: string;
1068
+ }[];
1069
+ productClusters: {
1070
+ id: string;
1071
+ name: string;
1072
+ }[];
1073
+ isVariantOf: {
1074
+ name: string;
1075
+ productGroupID: string;
1076
+ skuVariants: {
1077
+ activeVariations: {
1078
+ Tamanho: string;
1079
+ };
1080
+ availableVariations: string[];
1081
+ slugsMap: {
1082
+ [key: string]: string;
1083
+ };
1084
+ };
1085
+ };
1086
+ brand: {
1087
+ name: string;
1088
+ };
1089
+ productID: string;
1090
+ seo: {
1091
+ canonical: string;
1092
+ };
1093
+ unitMultiplier: number;
1094
+ name: string;
1095
+ sku: string;
1096
+ offers: {
1097
+ highPrice: number;
1098
+ lowPrice: number;
1099
+ offers: {
1100
+ availability: string;
1101
+ seller: {
1102
+ identifier: string;
1103
+ };
1104
+ listPrice: number;
1105
+ price: number;
1106
+ quantity: number;
1107
+ sellingPrice: number;
1108
+ }[];
1109
+ };
1110
+ }[];
1111
+ };
1112
+ name: string;
1113
+ offers: {
1114
+ highPrice: number;
1115
+ lowPrice: number;
1116
+ offers: Array<{
1117
+ listPrice: number;
1118
+ price: number;
1119
+ quantity: number;
1120
+ sellingPrice: number;
1121
+ }>;
1122
+ };
1123
+ id: string;
1124
+ sku: string;
1125
+ slug: string;
1126
+ }
1127
+ interface ExtendedVariantOf extends OriginalVariantOf {
1128
+ hasVariant: {
1129
+ additionalProperty: {
1130
+ propertyID: string;
1131
+ name: string;
1132
+ value: string;
1133
+ valueReference: string;
1134
+ }[];
1135
+ name: string;
1136
+ sku: string;
1137
+ productID: string;
1138
+ slug: string;
1139
+ seo: {
1140
+ canonical: string;
1141
+ };
1142
+ brand: {
1143
+ name: string;
1144
+ };
1145
+ gtin: string;
1146
+ image: {
1147
+ url: string;
1148
+ alternateName: string;
1149
+ }[];
1150
+ isVariantOf: OriginalVariantOf;
1151
+ unitMultiplier: number;
1152
+ offers: {
1153
+ offers: Array<{
1154
+ availability: string;
1155
+ quantity: number;
1156
+ price: number;
1157
+ listPrice: number;
1158
+ seller: {
1159
+ identifier: string;
1160
+ };
1161
+ }>;
1162
+ };
1163
+ }[];
1164
+ skuVariants: ExtendedSkuVariants;
1165
+ }
1166
+ interface AnimalePDPProduct extends OriginalProductQueryQuery {
1167
+ index: number;
1168
+ item_list_name: string;
1169
+ specificationGroups: Array<{
1170
+ name: string;
1171
+ specifications: Array<{
1172
+ name: string;
1173
+ values: Array<string>;
1174
+ }>;
1175
+ }>;
1176
+ breadcrumbList: {
1177
+ itemListElement: Array<{
1178
+ item: string;
1179
+ position: number;
1180
+ name: string;
1181
+ }>;
1182
+ };
1183
+ fullSellers: Array<{
1184
+ commertialOffer: {
1185
+ AvailableQuantity: number;
1186
+ DiscountPercent: number | null;
1187
+ Installments: Array<{
1188
+ InterestRate: number;
1189
+ Name: string;
1190
+ NumberOfInstallments: number;
1191
+ TotalValuePlusInterestRate: number;
1192
+ Value: number;
1193
+ }>;
1194
+ ListPrice: number;
1195
+ Price: number;
1196
+ PriceWithoutDiscount: number;
1197
+ };
1198
+ sellerDefault: boolean;
1199
+ sellerId: string;
1200
+ sellerName: string;
1201
+ }>;
1202
+ seo: {
1203
+ canonical: string;
1204
+ description: string;
1205
+ title: string;
1206
+ };
1207
+ productClusters: Array<{
1208
+ id: string;
1209
+ name: string;
1210
+ }>;
1211
+ isVariantOf: ExtendedVariantOf;
1212
+ slug: string;
1213
+ productReference: string;
1214
+ itemsSellers: Array<{
1215
+ id: string;
1216
+ sellerDefault: {
1217
+ sellerId: string;
1218
+ sellerName: string;
1219
+ };
1220
+ }>;
1221
+ }
1222
+
955
1223
  interface MarketingData {
956
1224
  utmSource: string | undefined;
957
1225
  utmMedium: string | undefined;
@@ -1594,6 +1862,14 @@ type AdapterPayload = ({
1594
1862
  adapter: 'PICKUP';
1595
1863
  flag_pickup: boolean;
1596
1864
  shippings: Sla[];
1865
+ } | {
1866
+ adapter: 'ANIMALE';
1867
+ zone: 'PDP';
1868
+ products: (AnimalePDPProduct & ProductMeta)[];
1869
+ } | {
1870
+ adapter: 'ANIMALE';
1871
+ zone: 'PDC';
1872
+ products: (AnimalePDCProduct & ProductMeta)[];
1597
1873
  } | {
1598
1874
  adapter: 'HEADLESS';
1599
1875
  zone: 'PDP';
@@ -1686,7 +1962,7 @@ declare const _default: {
1686
1962
  readonly name: "select_promotion";
1687
1963
  readonly hasEcommerce: true;
1688
1964
  readonly destinations: readonly ["DataLayer"];
1689
- readonly requiredParams: readonly ["brand", "region", "currency", "promotion_name", "promotion_url", "creative_slot", "creative_name"];
1965
+ readonly requiredParams: readonly ["brand", "region", "currency", "promotion_name", "creative_slot", "creative_name"];
1690
1966
  };
1691
1967
  SELECT_CONTENT: {
1692
1968
  readonly name: "select_content";