@pvh-afl/core 1.0.4 → 1.0.6
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/integrations/index.d.ts +1 -0
- package/dist/integrations/index.d.ts.map +1 -1
- package/dist/integrations/index.js +2 -0
- package/dist/integrations/index.js.map +1 -1
- package/dist/integrations/integrations.module.d.ts.map +1 -1
- package/dist/integrations/integrations.module.js +5 -0
- package/dist/integrations/integrations.module.js.map +1 -1
- package/dist/integrations/search/index.d.ts +3 -0
- package/dist/integrations/search/index.d.ts.map +1 -0
- package/dist/integrations/search/index.js +6 -0
- package/dist/integrations/search/index.js.map +1 -0
- package/dist/integrations/search/wizzy.service.d.ts +50 -0
- package/dist/integrations/search/wizzy.service.d.ts.map +1 -0
- package/dist/integrations/search/wizzy.service.js +227 -0
- package/dist/integrations/search/wizzy.service.js.map +1 -0
- package/dist/integrations/search/wizzy.types.d.ts +154 -0
- package/dist/integrations/search/wizzy.types.d.ts.map +1 -0
- package/dist/integrations/search/wizzy.types.js +9 -0
- package/dist/integrations/search/wizzy.types.js.map +1 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/integrations/index.ts"],"names":[],"mappings":"AACA,cAAc,qBAAqB,CAAC;AACpC,cAAc,4BAA4B,CAAC;AAG3C,cAAc,YAAY,CAAC;AAG3B,cAAc,OAAO,CAAC;AAGtB,cAAc,WAAW,CAAC;AAG1B,cAAc,iBAAiB,CAAC;AAGhC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/integrations/index.ts"],"names":[],"mappings":"AACA,cAAc,qBAAqB,CAAC;AACpC,cAAc,4BAA4B,CAAC;AAG3C,cAAc,YAAY,CAAC;AAG3B,cAAc,OAAO,CAAC;AAGtB,cAAc,WAAW,CAAC;AAG1B,cAAc,iBAAiB,CAAC;AAGhC,cAAc,UAAU,CAAC;AAGzB,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC"}
|
|
@@ -12,6 +12,8 @@ tslib_1.__exportStar(require("./oms"), exports);
|
|
|
12
12
|
tslib_1.__exportStar(require("./loyalty"), exports);
|
|
13
13
|
// Theme integration
|
|
14
14
|
tslib_1.__exportStar(require("./shopify-theme"), exports);
|
|
15
|
+
// Search integrations (Wizzy)
|
|
16
|
+
tslib_1.__exportStar(require("./search"), exports);
|
|
15
17
|
// Integration factory and module
|
|
16
18
|
tslib_1.__exportStar(require("./integration.factory"), exports);
|
|
17
19
|
tslib_1.__exportStar(require("./integrations.module"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/integrations/index.ts"],"names":[],"mappings":";;;AAAA,sCAAsC;AACtC,8DAAoC;AACpC,qEAA2C;AAE3C,kCAAkC;AAClC,qDAA2B;AAE3B,2BAA2B;AAC3B,gDAAsB;AAEtB,mCAAmC;AACnC,oDAA0B;AAE1B,oBAAoB;AACpB,0DAAgC;AAEhC,iCAAiC;AACjC,gEAAsC;AACtC,gEAAsC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/integrations/index.ts"],"names":[],"mappings":";;;AAAA,sCAAsC;AACtC,8DAAoC;AACpC,qEAA2C;AAE3C,kCAAkC;AAClC,qDAA2B;AAE3B,2BAA2B;AAC3B,gDAAsB;AAEtB,mCAAmC;AACnC,oDAA0B;AAE1B,oBAAoB;AACpB,0DAAgC;AAEhC,8BAA8B;AAC9B,mDAAyB;AAEzB,iCAAiC;AACjC,gEAAsC;AACtC,gEAAsC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integrations.module.d.ts","sourceRoot":"","sources":["../../src/integrations/integrations.module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"integrations.module.d.ts","sourceRoot":"","sources":["../../src/integrations/integrations.module.ts"],"names":[],"mappings":"AAiBA,qBA2Ba,kBAAkB;CAAG"}
|
|
@@ -13,6 +13,8 @@ const omuni_service_1 = require("./oms/omuni.service");
|
|
|
13
13
|
// Capillary Loyalty
|
|
14
14
|
const capillary_auth_service_1 = require("./loyalty/capillary-auth.service");
|
|
15
15
|
const capillary_coupon_service_1 = require("./loyalty/capillary-coupon.service");
|
|
16
|
+
// Search
|
|
17
|
+
const wizzy_service_1 = require("./search/wizzy.service");
|
|
16
18
|
// CacheModule and ConfigModule are @Global() so no import needed
|
|
17
19
|
let IntegrationsModule = class IntegrationsModule {
|
|
18
20
|
};
|
|
@@ -31,6 +33,8 @@ exports.IntegrationsModule = IntegrationsModule = tslib_1.__decorate([
|
|
|
31
33
|
// Loyalty
|
|
32
34
|
capillary_auth_service_1.CapillaryAuthService,
|
|
33
35
|
capillary_coupon_service_1.CapillaryCouponService,
|
|
36
|
+
// Search
|
|
37
|
+
wizzy_service_1.WizzyService,
|
|
34
38
|
],
|
|
35
39
|
exports: [
|
|
36
40
|
integration_factory_1.IntegrationFactory,
|
|
@@ -40,6 +44,7 @@ exports.IntegrationsModule = IntegrationsModule = tslib_1.__decorate([
|
|
|
40
44
|
omuni_service_1.OmuniService,
|
|
41
45
|
capillary_auth_service_1.CapillaryAuthService,
|
|
42
46
|
capillary_coupon_service_1.CapillaryCouponService,
|
|
47
|
+
wizzy_service_1.WizzyService,
|
|
43
48
|
],
|
|
44
49
|
})
|
|
45
50
|
], IntegrationsModule);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integrations.module.js","sourceRoot":"","sources":["../../src/integrations/integrations.module.ts"],"names":[],"mappings":";;;;AAAA,2CAAwC;AACxC,+DAA2D;AAC3D,yEAAoE;AAEpE,8BAA8B;AAC9B,gEAAoE;AACpE,4EAAuE;AACvE,iEAA4D;AAC5D,uDAAmD;AACnD,oBAAoB;AACpB,6EAAwE;AACxE,iFAA4E;
|
|
1
|
+
{"version":3,"file":"integrations.module.js","sourceRoot":"","sources":["../../src/integrations/integrations.module.ts"],"names":[],"mappings":";;;;AAAA,2CAAwC;AACxC,+DAA2D;AAC3D,yEAAoE;AAEpE,8BAA8B;AAC9B,gEAAoE;AACpE,4EAAuE;AACvE,iEAA4D;AAC5D,uDAAmD;AACnD,oBAAoB;AACpB,6EAAwE;AACxE,iFAA4E;AAC5E,SAAS;AACT,0DAAsD;AAEtD,iEAAiE;AA6B1D,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;CAAG,CAAA;AAArB,gDAAkB;6BAAlB,kBAAkB;IA3B9B,IAAA,eAAM,EAAC;QACN,SAAS,EAAE;YACT,wCAAkB;YAClB,iDAAsB;YACtB,WAAW;YACX,wCAAsB;YACtB,2CAAmB;YACnB,MAAM;YACN,qCAAgB;YAChB,4BAAY;YACZ,UAAU;YACV,6CAAoB;YACpB,iDAAsB;YACtB,SAAS;YACT,4BAAY;SACb;QACD,OAAO,EAAE;YACP,wCAAkB;YAClB,gEAAgE;YAChE,wCAAsB;YACtB,2CAAmB;YACnB,4BAAY;YACZ,6CAAoB;YACpB,iDAAsB;YACtB,4BAAY;SACb;KACF,CAAC;GACW,kBAAkB,CAAG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/integrations/search/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./wizzy.service"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./wizzy.types"), exports);
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/integrations/search/index.ts"],"names":[],"mappings":";;;AAAA,0DAAgC;AAChC,wDAA8B"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { IntegrationResponse } from '../integration.types';
|
|
2
|
+
import { WizzyConfig, WizzyFilterRequest, WizzySearchRequest, WizzyAutocompleteRequest, WizzyResponse, WizzyProductsPayload, WizzyAutocompletePayload, WizzyTrendingPayload } from './wizzy.types';
|
|
3
|
+
/**
|
|
4
|
+
* Wizzy Search Service
|
|
5
|
+
*
|
|
6
|
+
* Provides methods to interact with the Wizzy search API.
|
|
7
|
+
* Uses application/x-www-form-urlencoded format as required by Wizzy.
|
|
8
|
+
*/
|
|
9
|
+
export declare class WizzyService {
|
|
10
|
+
private config;
|
|
11
|
+
private brand;
|
|
12
|
+
private readonly defaultTimeout;
|
|
13
|
+
/**
|
|
14
|
+
* Configure the service for a specific brand
|
|
15
|
+
*/
|
|
16
|
+
configure(brand: string, config: WizzyConfig): void;
|
|
17
|
+
/**
|
|
18
|
+
* Check if the service is configured
|
|
19
|
+
*/
|
|
20
|
+
isConfigured(): boolean;
|
|
21
|
+
/**
|
|
22
|
+
* POST /products/filter - Collection listing with filters
|
|
23
|
+
*/
|
|
24
|
+
filterProducts(filters: WizzyFilterRequest): Promise<IntegrationResponse<WizzyResponse<WizzyProductsPayload>>>;
|
|
25
|
+
/**
|
|
26
|
+
* POST /products/search - Keyword search
|
|
27
|
+
*/
|
|
28
|
+
searchProducts(params: WizzySearchRequest): Promise<IntegrationResponse<WizzyResponse<WizzyProductsPayload>>>;
|
|
29
|
+
/**
|
|
30
|
+
* POST /autocomplete - Type-ahead suggestions
|
|
31
|
+
*/
|
|
32
|
+
autocomplete(params: WizzyAutocompleteRequest): Promise<IntegrationResponse<WizzyResponse<WizzyAutocompletePayload>>>;
|
|
33
|
+
/**
|
|
34
|
+
* GET /trendingSearches - Popular search terms
|
|
35
|
+
*/
|
|
36
|
+
getTrendingSearches(): Promise<IntegrationResponse<WizzyResponse<WizzyTrendingPayload>>>;
|
|
37
|
+
/**
|
|
38
|
+
* Make a POST request with x-www-form-urlencoded body
|
|
39
|
+
*/
|
|
40
|
+
private postRequest;
|
|
41
|
+
/**
|
|
42
|
+
* Make a GET request
|
|
43
|
+
*/
|
|
44
|
+
private getRequest;
|
|
45
|
+
/**
|
|
46
|
+
* Normalize Wizzy error responses
|
|
47
|
+
*/
|
|
48
|
+
private normalizeError;
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=wizzy.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wizzy.service.d.ts","sourceRoot":"","sources":["../../../src/integrations/search/wizzy.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAoB,MAAM,sBAAsB,CAAC;AAC7E,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,kBAAkB,EAClB,wBAAwB,EACxB,aAAa,EACb,oBAAoB,EACpB,wBAAwB,EACxB,oBAAoB,EACrB,MAAM,eAAe,CAAC;AAEvB;;;;;GAKG;AACH,qBACa,YAAY;IACvB,OAAO,CAAC,MAAM,CAA4B;IAC1C,OAAO,CAAC,KAAK,CAAc;IAC3B,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAS;IAExC;;OAEG;IACH,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,GAAG,IAAI;IAQnD;;OAEG;IACH,YAAY,IAAI,OAAO;IAIvB;;OAEG;IACG,cAAc,CAClB,OAAO,EAAE,kBAAkB,GAC1B,OAAO,CAAC,mBAAmB,CAAC,aAAa,CAAC,oBAAoB,CAAC,CAAC,CAAC;IAIpE;;OAEG;IACG,cAAc,CAClB,MAAM,EAAE,kBAAkB,GACzB,OAAO,CAAC,mBAAmB,CAAC,aAAa,CAAC,oBAAoB,CAAC,CAAC,CAAC;IA2CpE;;OAEG;IACG,YAAY,CAChB,MAAM,EAAE,wBAAwB,GAC/B,OAAO,CAAC,mBAAmB,CAAC,aAAa,CAAC,wBAAwB,CAAC,CAAC,CAAC;IAIxE;;OAEG;IACG,mBAAmB,IAAI,OAAO,CAClC,mBAAmB,CAAC,aAAa,CAAC,oBAAoB,CAAC,CAAC,CACzD;IAID;;OAEG;YACW,WAAW;IAyEzB;;OAEG;YACW,UAAU;IAgExB;;OAEG;IACH,OAAO,CAAC,cAAc;CAqBvB"}
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WizzyService = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const common_1 = require("@nestjs/common");
|
|
6
|
+
const logger_1 = require("../../common/logger");
|
|
7
|
+
/**
|
|
8
|
+
* Wizzy Search Service
|
|
9
|
+
*
|
|
10
|
+
* Provides methods to interact with the Wizzy search API.
|
|
11
|
+
* Uses application/x-www-form-urlencoded format as required by Wizzy.
|
|
12
|
+
*/
|
|
13
|
+
let WizzyService = class WizzyService {
|
|
14
|
+
config = null;
|
|
15
|
+
brand = '';
|
|
16
|
+
defaultTimeout = 10000;
|
|
17
|
+
/**
|
|
18
|
+
* Configure the service for a specific brand
|
|
19
|
+
*/
|
|
20
|
+
configure(brand, config) {
|
|
21
|
+
this.brand = brand;
|
|
22
|
+
this.config = {
|
|
23
|
+
timeout: this.defaultTimeout,
|
|
24
|
+
...config,
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Check if the service is configured
|
|
29
|
+
*/
|
|
30
|
+
isConfigured() {
|
|
31
|
+
return this.config !== null;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* POST /products/filter - Collection listing with filters
|
|
35
|
+
*/
|
|
36
|
+
async filterProducts(filters) {
|
|
37
|
+
return this.postRequest('/products/filter', { filters: JSON.stringify(filters) });
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* POST /products/search - Keyword search
|
|
41
|
+
*/
|
|
42
|
+
async searchProducts(params) {
|
|
43
|
+
const body = {
|
|
44
|
+
q: params.q,
|
|
45
|
+
};
|
|
46
|
+
if (params.productsCount !== undefined) {
|
|
47
|
+
body.productsCount = String(params.productsCount);
|
|
48
|
+
}
|
|
49
|
+
if (params.page !== undefined) {
|
|
50
|
+
body.page = String(params.page);
|
|
51
|
+
}
|
|
52
|
+
if (params.sort) {
|
|
53
|
+
body.sort = JSON.stringify(params.sort);
|
|
54
|
+
}
|
|
55
|
+
if (params.facets) {
|
|
56
|
+
body.facets = JSON.stringify(params.facets);
|
|
57
|
+
}
|
|
58
|
+
// Add filters if present
|
|
59
|
+
if (params.categories) {
|
|
60
|
+
body.categories = JSON.stringify(params.categories);
|
|
61
|
+
}
|
|
62
|
+
if (params.brands) {
|
|
63
|
+
body.brands = JSON.stringify(params.brands);
|
|
64
|
+
}
|
|
65
|
+
if (params.genders) {
|
|
66
|
+
body.genders = JSON.stringify(params.genders);
|
|
67
|
+
}
|
|
68
|
+
if (params.colors) {
|
|
69
|
+
body.colors = JSON.stringify(params.colors);
|
|
70
|
+
}
|
|
71
|
+
if (params.sizes) {
|
|
72
|
+
body.sizes = JSON.stringify(params.sizes);
|
|
73
|
+
}
|
|
74
|
+
if (params.inStock) {
|
|
75
|
+
body.inStock = JSON.stringify(params.inStock);
|
|
76
|
+
}
|
|
77
|
+
if (params.sellingPrice) {
|
|
78
|
+
body.sellingPrice = JSON.stringify(params.sellingPrice);
|
|
79
|
+
}
|
|
80
|
+
return this.postRequest('/products/search', body);
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* POST /autocomplete - Type-ahead suggestions
|
|
84
|
+
*/
|
|
85
|
+
async autocomplete(params) {
|
|
86
|
+
return this.postRequest('/autocomplete', { q: params.q });
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* GET /trendingSearches - Popular search terms
|
|
90
|
+
*/
|
|
91
|
+
async getTrendingSearches() {
|
|
92
|
+
return this.getRequest('/trendingSearches');
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Make a POST request with x-www-form-urlencoded body
|
|
96
|
+
*/
|
|
97
|
+
async postRequest(path, body) {
|
|
98
|
+
if (!this.config) {
|
|
99
|
+
return {
|
|
100
|
+
success: false,
|
|
101
|
+
error: {
|
|
102
|
+
code: 'NOT_CONFIGURED',
|
|
103
|
+
message: 'Wizzy service is not configured',
|
|
104
|
+
},
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
const url = `${this.config.baseUrl}${path}`;
|
|
108
|
+
const headers = {
|
|
109
|
+
'Content-Type': 'application/x-www-form-urlencoded',
|
|
110
|
+
'x-store-id': this.config.storeId,
|
|
111
|
+
'x-api-key': this.config.apiKey,
|
|
112
|
+
};
|
|
113
|
+
try {
|
|
114
|
+
const controller = new AbortController();
|
|
115
|
+
const timeoutId = setTimeout(() => controller.abort(), this.config.timeout ?? this.defaultTimeout);
|
|
116
|
+
// Build URL-encoded body
|
|
117
|
+
const urlEncodedBody = new URLSearchParams(body).toString();
|
|
118
|
+
const response = await fetch(url, {
|
|
119
|
+
method: 'POST',
|
|
120
|
+
headers,
|
|
121
|
+
body: urlEncodedBody,
|
|
122
|
+
signal: controller.signal,
|
|
123
|
+
});
|
|
124
|
+
clearTimeout(timeoutId);
|
|
125
|
+
const data = (await response.json());
|
|
126
|
+
// Wizzy returns status:1 for success, status:0 for error (even with HTTP 200)
|
|
127
|
+
if (!response.ok || data.status === 0) {
|
|
128
|
+
return {
|
|
129
|
+
success: false,
|
|
130
|
+
error: this.normalizeError(response.status, data),
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
return { success: true, data };
|
|
134
|
+
}
|
|
135
|
+
catch (error) {
|
|
136
|
+
logger_1.logger.error('Wizzy POST request failed', {
|
|
137
|
+
brand: this.brand,
|
|
138
|
+
path,
|
|
139
|
+
error: error instanceof Error ? error.message : 'Unknown error',
|
|
140
|
+
});
|
|
141
|
+
return {
|
|
142
|
+
success: false,
|
|
143
|
+
error: {
|
|
144
|
+
code: 'REQUEST_FAILED',
|
|
145
|
+
message: error instanceof Error ? error.message : 'Request failed',
|
|
146
|
+
details: error,
|
|
147
|
+
},
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Make a GET request
|
|
153
|
+
*/
|
|
154
|
+
async getRequest(path) {
|
|
155
|
+
if (!this.config) {
|
|
156
|
+
return {
|
|
157
|
+
success: false,
|
|
158
|
+
error: {
|
|
159
|
+
code: 'NOT_CONFIGURED',
|
|
160
|
+
message: 'Wizzy service is not configured',
|
|
161
|
+
},
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
const url = `${this.config.baseUrl}${path}`;
|
|
165
|
+
const headers = {
|
|
166
|
+
'x-store-id': this.config.storeId,
|
|
167
|
+
'x-api-key': this.config.apiKey,
|
|
168
|
+
};
|
|
169
|
+
try {
|
|
170
|
+
const controller = new AbortController();
|
|
171
|
+
const timeoutId = setTimeout(() => controller.abort(), this.config.timeout ?? this.defaultTimeout);
|
|
172
|
+
const response = await fetch(url, {
|
|
173
|
+
method: 'GET',
|
|
174
|
+
headers,
|
|
175
|
+
signal: controller.signal,
|
|
176
|
+
});
|
|
177
|
+
clearTimeout(timeoutId);
|
|
178
|
+
const data = (await response.json());
|
|
179
|
+
if (!response.ok || data.status === 0) {
|
|
180
|
+
return {
|
|
181
|
+
success: false,
|
|
182
|
+
error: this.normalizeError(response.status, data),
|
|
183
|
+
};
|
|
184
|
+
}
|
|
185
|
+
return { success: true, data };
|
|
186
|
+
}
|
|
187
|
+
catch (error) {
|
|
188
|
+
logger_1.logger.error('Wizzy GET request failed', {
|
|
189
|
+
brand: this.brand,
|
|
190
|
+
path,
|
|
191
|
+
error: error instanceof Error ? error.message : 'Unknown error',
|
|
192
|
+
});
|
|
193
|
+
return {
|
|
194
|
+
success: false,
|
|
195
|
+
error: {
|
|
196
|
+
code: 'REQUEST_FAILED',
|
|
197
|
+
message: error instanceof Error ? error.message : 'Request failed',
|
|
198
|
+
details: error,
|
|
199
|
+
},
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
/**
|
|
204
|
+
* Normalize Wizzy error responses
|
|
205
|
+
*/
|
|
206
|
+
normalizeError(status, data) {
|
|
207
|
+
const errorMap = {
|
|
208
|
+
400: 'BAD_REQUEST',
|
|
209
|
+
401: 'UNAUTHORIZED',
|
|
210
|
+
403: 'FORBIDDEN',
|
|
211
|
+
404: 'NOT_FOUND',
|
|
212
|
+
429: 'RATE_LIMITED',
|
|
213
|
+
500: 'INTERNAL_ERROR',
|
|
214
|
+
};
|
|
215
|
+
const httpStatus = data.statusCode ?? status;
|
|
216
|
+
return {
|
|
217
|
+
code: errorMap[httpStatus] ?? 'UNKNOWN_ERROR',
|
|
218
|
+
message: data.message ?? `HTTP ${httpStatus}`,
|
|
219
|
+
details: data,
|
|
220
|
+
};
|
|
221
|
+
}
|
|
222
|
+
};
|
|
223
|
+
exports.WizzyService = WizzyService;
|
|
224
|
+
exports.WizzyService = WizzyService = tslib_1.__decorate([
|
|
225
|
+
(0, common_1.Injectable)()
|
|
226
|
+
], WizzyService);
|
|
227
|
+
//# sourceMappingURL=wizzy.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wizzy.service.js","sourceRoot":"","sources":["../../../src/integrations/search/wizzy.service.ts"],"names":[],"mappings":";;;;AAAA,2CAA4C;AAC5C,gDAA6C;AAa7C;;;;;GAKG;AAEI,IAAM,YAAY,GAAlB,MAAM,YAAY;IACf,MAAM,GAAuB,IAAI,CAAC;IAClC,KAAK,GAAW,EAAE,CAAC;IACV,cAAc,GAAG,KAAK,CAAC;IAExC;;OAEG;IACH,SAAS,CAAC,KAAa,EAAE,MAAmB;QAC1C,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,MAAM,GAAG;YACZ,OAAO,EAAE,IAAI,CAAC,cAAc;YAC5B,GAAG,MAAM;SACV,CAAC;IACJ,CAAC;I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M,CAAC;QAE7C,OAAO;YACL,IAAI,EAAE,QAAQ,CAAC,UAAU,CAAC,IAAI,eAAe;YAC7C,OAAO,EAAE,IAAI,CAAC,OAAO,IAAI,QAAQ,UAAU,EAAE;YAC7C,OAAO,EAAE,IAAI;SACd,CAAC;IACJ,CAAC;CACF,CAAA;AAzQY,oCAAY;uBAAZ,YAAY;IADxB,IAAA,mBAAU,GAAE;GACA,YAAY,CAyQxB"}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Wizzy Search API Types
|
|
3
|
+
*
|
|
4
|
+
* Type definitions for the Wizzy search API.
|
|
5
|
+
* These represent the raw API request/response shapes.
|
|
6
|
+
*/
|
|
7
|
+
export interface WizzyFilterRequest {
|
|
8
|
+
categories?: string[];
|
|
9
|
+
brands?: string[];
|
|
10
|
+
genders?: string[];
|
|
11
|
+
colors?: string[];
|
|
12
|
+
sizes?: string[];
|
|
13
|
+
groupIds?: string[];
|
|
14
|
+
inStock?: boolean[];
|
|
15
|
+
sellingPrice?: WizzyRangeFilter[];
|
|
16
|
+
price?: WizzyRangeFilter[];
|
|
17
|
+
discountPercentage?: WizzyRangeFilter[];
|
|
18
|
+
avgRatings?: WizzyRangeFilter[];
|
|
19
|
+
page?: number;
|
|
20
|
+
productsCount?: number;
|
|
21
|
+
sort?: WizzySortOption[];
|
|
22
|
+
facets?: WizzyFacetRequest[];
|
|
23
|
+
}
|
|
24
|
+
export interface WizzyRangeFilter {
|
|
25
|
+
gte?: number;
|
|
26
|
+
lte?: number;
|
|
27
|
+
}
|
|
28
|
+
export interface WizzySortOption {
|
|
29
|
+
field: string;
|
|
30
|
+
order: 'asc' | 'desc';
|
|
31
|
+
}
|
|
32
|
+
export interface WizzyFacetRequest {
|
|
33
|
+
key: string;
|
|
34
|
+
}
|
|
35
|
+
export interface WizzySearchRequest {
|
|
36
|
+
q: string;
|
|
37
|
+
productsCount?: number;
|
|
38
|
+
page?: number;
|
|
39
|
+
sort?: WizzySortOption[];
|
|
40
|
+
facets?: WizzyFacetRequest[];
|
|
41
|
+
categories?: string[];
|
|
42
|
+
brands?: string[];
|
|
43
|
+
genders?: string[];
|
|
44
|
+
colors?: string[];
|
|
45
|
+
sizes?: string[];
|
|
46
|
+
inStock?: boolean[];
|
|
47
|
+
sellingPrice?: WizzyRangeFilter[];
|
|
48
|
+
}
|
|
49
|
+
export interface WizzyAutocompleteRequest {
|
|
50
|
+
q: string;
|
|
51
|
+
}
|
|
52
|
+
export interface WizzyResponse<T> {
|
|
53
|
+
payload: T;
|
|
54
|
+
status: number;
|
|
55
|
+
statusCode: number;
|
|
56
|
+
message: string;
|
|
57
|
+
}
|
|
58
|
+
export interface WizzyProductsPayload {
|
|
59
|
+
result: WizzyProduct[];
|
|
60
|
+
total: number;
|
|
61
|
+
pages: number;
|
|
62
|
+
hasExactMatch?: boolean;
|
|
63
|
+
facets: WizzyFacet[];
|
|
64
|
+
}
|
|
65
|
+
export interface WizzyProduct {
|
|
66
|
+
id: number;
|
|
67
|
+
groupId: number;
|
|
68
|
+
name: string;
|
|
69
|
+
brand: string;
|
|
70
|
+
gender?: string;
|
|
71
|
+
url: string;
|
|
72
|
+
sellingPrice: number;
|
|
73
|
+
price: number;
|
|
74
|
+
finalPrice: number;
|
|
75
|
+
discount: number;
|
|
76
|
+
discountPercentage: number;
|
|
77
|
+
inStock: boolean;
|
|
78
|
+
mainImage: string;
|
|
79
|
+
hoverImage?: string;
|
|
80
|
+
images: string[];
|
|
81
|
+
colors: WizzyColorOption[];
|
|
82
|
+
sizes: WizzySizeOption[];
|
|
83
|
+
categories: WizzyCategory[];
|
|
84
|
+
sku: string[];
|
|
85
|
+
avgRatings: number;
|
|
86
|
+
totalReviews: number;
|
|
87
|
+
attributes?: WizzyAttribute[];
|
|
88
|
+
}
|
|
89
|
+
export interface WizzyColorOption {
|
|
90
|
+
variationId?: number;
|
|
91
|
+
value: string;
|
|
92
|
+
inStock: boolean;
|
|
93
|
+
}
|
|
94
|
+
export interface WizzySizeOption {
|
|
95
|
+
variationId?: number;
|
|
96
|
+
value: string;
|
|
97
|
+
swatch?: {
|
|
98
|
+
type: string;
|
|
99
|
+
value: string;
|
|
100
|
+
};
|
|
101
|
+
inStock: boolean;
|
|
102
|
+
}
|
|
103
|
+
export interface WizzyCategory {
|
|
104
|
+
id: string;
|
|
105
|
+
name: string;
|
|
106
|
+
url: string;
|
|
107
|
+
}
|
|
108
|
+
export interface WizzyAttribute {
|
|
109
|
+
key: string;
|
|
110
|
+
value: unknown;
|
|
111
|
+
}
|
|
112
|
+
export interface WizzyFacet {
|
|
113
|
+
key: string;
|
|
114
|
+
label: string;
|
|
115
|
+
type: 'list' | 'range' | 'range-list';
|
|
116
|
+
data: WizzyFacetListItem[] | WizzyFacetRangeData;
|
|
117
|
+
}
|
|
118
|
+
export interface WizzyFacetListItem {
|
|
119
|
+
key: string;
|
|
120
|
+
label: string;
|
|
121
|
+
count: number;
|
|
122
|
+
data?: {
|
|
123
|
+
swatch?: {
|
|
124
|
+
type: string;
|
|
125
|
+
value: string;
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
export interface WizzyFacetRangeData {
|
|
130
|
+
min: number;
|
|
131
|
+
max: number;
|
|
132
|
+
avg: number;
|
|
133
|
+
}
|
|
134
|
+
export interface WizzyAutocompletePayload {
|
|
135
|
+
categories: WizzyAutocompleteSuggestion[];
|
|
136
|
+
brands: WizzyAutocompleteSuggestion[];
|
|
137
|
+
others: WizzyAutocompleteSuggestion[];
|
|
138
|
+
pages: WizzyAutocompleteSuggestion[];
|
|
139
|
+
}
|
|
140
|
+
export interface WizzyAutocompleteSuggestion {
|
|
141
|
+
value: string;
|
|
142
|
+
valueHighlighted: string;
|
|
143
|
+
filters: Record<string, string[]> | unknown[];
|
|
144
|
+
}
|
|
145
|
+
export interface WizzyTrendingPayload {
|
|
146
|
+
queries: string[];
|
|
147
|
+
}
|
|
148
|
+
export interface WizzyConfig {
|
|
149
|
+
baseUrl: string;
|
|
150
|
+
storeId: string;
|
|
151
|
+
apiKey: string;
|
|
152
|
+
timeout?: number;
|
|
153
|
+
}
|
|
154
|
+
//# sourceMappingURL=wizzy.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wizzy.types.d.ts","sourceRoot":"","sources":["../../../src/integrations/search/wizzy.types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,MAAM,WAAW,kBAAkB;IACjC,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,EAAE,CAAC;IACpB,YAAY,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAClC,KAAK,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAC3B,kBAAkB,CAAC,EAAE,gBAAgB,EAAE,CAAC;IACxC,UAAU,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,IAAI,CAAC,EAAE,eAAe,EAAE,CAAC;IACzB,MAAM,CAAC,EAAE,iBAAiB,EAAE,CAAC;CAC9B;AAED,MAAM,WAAW,gBAAgB;IAC/B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,KAAK,GAAG,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,iBAAiB;IAChC,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,kBAAkB;IACjC,CAAC,EA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MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE;QACL,MAAM,CAAC,EAAE;YACP,IAAI,EAAE,MAAM,CAAC;YACb,KAAK,EAAE,MAAM,CAAC;SACf,CAAC;KACH,CAAC;CACH;AAED,MAAM,WAAW,mBAAmB;IAClC,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,wBAAwB;IACvC,UAAU,EAAE,2BAA2B,EAAE,CAAC;IAC1C,MAAM,EAAE,2BAA2B,EAAE,CAAC;IACtC,MAAM,EAAE,2BAA2B,EAAE,CAAC;IACtC,KAAK,EAAE,2BAA2B,EAAE,CAAC;CACtC;AAED,MAAM,WAAW,2BAA2B;IAC1C,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,EAAE,MAAM,CAAC;IACzB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,GAAG,OAAO,EAAE,CAAC;CAC/C;AAED,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAGD,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Wizzy Search API Types
|
|
4
|
+
*
|
|
5
|
+
* Type definitions for the Wizzy search API.
|
|
6
|
+
* These represent the raw API request/response shapes.
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
//# sourceMappingURL=wizzy.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wizzy.types.js","sourceRoot":"","sources":["../../../src/integrations/search/wizzy.types.ts"],"names":[],"mappings":";AAAA;;;;;GAKG"}
|