addio-admin-sdk 1.6.76 → 1.6.77-canary-1

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.
Files changed (42) hide show
  1. package/.env.dev +2 -1
  2. package/dist/Interfaces/Cart/index.d.ts +7 -3
  3. package/dist/Interfaces/Cart/index.js +6 -1
  4. package/dist/Interfaces/Cart/index.js.map +1 -1
  5. package/dist/Interfaces/Context/IContextProps.d.ts +0 -1
  6. package/dist/Interfaces/G2/index.d.ts +318 -37
  7. package/dist/Interfaces/G2/index.js +17 -12
  8. package/dist/Interfaces/G2/index.js.map +1 -1
  9. package/dist/Interfaces/Space/index.d.ts +7 -0
  10. package/dist/Interfaces/TransferRequest/index.d.ts +1 -0
  11. package/dist/Interfaces/TransferRequest/index.js.map +1 -1
  12. package/dist/lib/Cart/index.d.ts +1 -0
  13. package/dist/lib/Cart/index.js +129 -42
  14. package/dist/lib/Cart/index.js.map +1 -1
  15. package/dist/lib/Space/index.js +2 -13
  16. package/dist/lib/Space/index.js.map +1 -1
  17. package/dist/rules/GR/interfaces/cart.d.ts +4 -1
  18. package/dist/rules/GR/interfaces/cart.js +2 -0
  19. package/dist/rules/GR/interfaces/cart.js.map +1 -1
  20. package/dist/rules/GR/utils/cart.d.ts +18 -4
  21. package/dist/rules/GR/utils/cart.js +106 -6
  22. package/dist/rules/GR/utils/cart.js.map +1 -1
  23. package/dist/rules/GR/utils/g2.d.ts +11 -1
  24. package/dist/rules/GR/utils/g2.js +107 -62
  25. package/dist/rules/GR/utils/g2.js.map +1 -1
  26. package/dist/rules/GR/utils/upsells.d.ts +2 -2
  27. package/dist/rules/GR/utils/upsells.js +3 -3
  28. package/dist/rules/GR/utils/upsells.js.map +1 -1
  29. package/dist/services/logs/index.d.ts +9 -0
  30. package/dist/services/logs/index.js +33 -1
  31. package/dist/services/logs/index.js.map +1 -1
  32. package/dist/utils/cart.d.ts +24 -11
  33. package/dist/utils/cart.js +131 -3
  34. package/dist/utils/cart.js.map +1 -1
  35. package/dist/utils/data.d.ts +2 -1
  36. package/dist/utils/data.js +17 -4
  37. package/dist/utils/data.js.map +1 -1
  38. package/dist/utils/discount.js +1 -1
  39. package/dist/utils/discount.js.map +1 -1
  40. package/dist/utils/zones.d.ts +3 -2
  41. package/dist/utils/zones.js.map +1 -1
  42. package/package.json +5 -1
package/.env.dev CHANGED
@@ -10,6 +10,7 @@ NEXT_PUBLIC_MEASUREMENT_ID_PROD=''
10
10
  NEXT_PUBLIC_SERVICE_DATABASE_READ_PROVIDER=nobase
11
11
  NEXT_PUBLIC_SERVICE_DATABASE_WRITE_PROVIDER=nobase,firebase
12
12
  NEXT_PUBLIC_SERVICE_DATABASE_URL=https://db-test.addiocommerce.com/
13
- NEXT_PUBLIC_API_URL=https://api-test.addiocommerce.com/v1
13
+ # NEXT_PUBLIC_API_URL=https://api-test.addiocommerce.com/v1
14
+ NEXT_PUBLIC_API_URL=http://localhost:8080
14
15
  NEXT_PUBLIC_SERVICE_DATABASE_TOKEN=''
15
16
  LOCAL_FIRESTORE=false
@@ -16,7 +16,7 @@ import IMarketplaceOrderData from '../MarketplacePublication/MarketplaceOrderDat
16
16
  import IPayment from '../Payment';
17
17
  import IBaseClass from '../BaseClass';
18
18
  import { IBank } from '../PromiseToPurchase';
19
- import { IG2OrderExternalValues } from '../G2';
19
+ import { IG2OrderExternalValues, IG2ProductExternalValues } from '../G2';
20
20
  export declare enum PaymentTypeEnum {
21
21
  CREDIT = "credit",
22
22
  DEBIT = "debit",
@@ -276,7 +276,7 @@ export interface IIndexedDeclination {
276
276
  readonly id?: string;
277
277
  readonly sku: string;
278
278
  readonly supplier_code?: string;
279
- readonly slug: string;
279
+ readonly slug?: string;
280
280
  readonly name: ITranslation[];
281
281
  readonly description: ITranslation[];
282
282
  readonly images_path: IImageInfo[];
@@ -323,7 +323,7 @@ export interface IIndexedDeclination {
323
323
  readonly is_service?: boolean;
324
324
  readonly is_other_type?: string;
325
325
  readonly hide_inventory?: boolean;
326
- readonly external_values?: any;
326
+ readonly external_values?: IG2ProductExternalValues;
327
327
  readonly promise_to_purchase_association_ids?: string[];
328
328
  }
329
329
  export interface IProductUpsell extends IIndexedDeclination {
@@ -399,6 +399,10 @@ export interface ICartPaymentPayloadOptions {
399
399
  };
400
400
  multi_payment_methods?: IPayment[];
401
401
  }
402
+ export declare enum CustomPromoType {
403
+ UNIT_PRICE = "unit_price",
404
+ EXTRA_PROMO = "extra_promo"
405
+ }
402
406
  export declare const getPromoCodeError: (errCode: string, locale?: string) => string;
403
407
  export declare const getDefaultCart: (cartType?: CartTypeEnum) => ICart;
404
408
  export declare const getDefaultCartItem: () => ICartItem;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getDefaultCartItem = exports.getDefaultCart = exports.getPromoCodeError = exports.ActionDoneOnCartEnum = exports.UpdateTypeEnum = exports.CartStatusEnum = exports.CartTypeEnum = exports.CartCustomerEnum = exports.CartContentTypeEnum = exports.CartErrorEnum = exports.CartPromoAppliesToEnum = exports.CustomPaymentTypeEnum = exports.PaymentTypeEnum = void 0;
3
+ exports.getDefaultCartItem = exports.getDefaultCart = exports.getPromoCodeError = exports.CustomPromoType = exports.ActionDoneOnCartEnum = exports.UpdateTypeEnum = exports.CartStatusEnum = exports.CartTypeEnum = exports.CartCustomerEnum = exports.CartContentTypeEnum = exports.CartErrorEnum = exports.CartPromoAppliesToEnum = exports.CustomPaymentTypeEnum = exports.PaymentTypeEnum = void 0;
4
4
  var Declination_1 = require("../Declination");
5
5
  var locale_1 = require("../../utils/locale");
6
6
  var errors_1 = require("../../utils/errors");
@@ -92,6 +92,11 @@ var ActionDoneOnCartEnum;
92
92
  ActionDoneOnCartEnum[ActionDoneOnCartEnum["MODIFIED_DISCOUNT_PRICE"] = 3] = "MODIFIED_DISCOUNT_PRICE";
93
93
  ActionDoneOnCartEnum[ActionDoneOnCartEnum["OUT_OF_STOCK_OR_NOT_FOUND"] = 4] = "OUT_OF_STOCK_OR_NOT_FOUND";
94
94
  })(ActionDoneOnCartEnum = exports.ActionDoneOnCartEnum || (exports.ActionDoneOnCartEnum = {}));
95
+ var CustomPromoType;
96
+ (function (CustomPromoType) {
97
+ CustomPromoType["UNIT_PRICE"] = "unit_price";
98
+ CustomPromoType["EXTRA_PROMO"] = "extra_promo";
99
+ })(CustomPromoType = exports.CustomPromoType || (exports.CustomPromoType = {}));
95
100
  var getPromoCodeError = function (errCode, locale) {
96
101
  if (locale === void 0) { locale = 'fr'; }
97
102
  var message = '';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Interfaces/Cart/index.ts"],"names":[],"mappings":";;;AAGA,8CAA+G;AAe/G,6CAAmD;AACnD,6CAAkD;AAIlD,IAAY,eAYX;AAZD,WAAY,eAAe;IAC1B,oCAAiB,CAAA;IACjB,kCAAe,CAAA;IACf,gCAAa,CAAA;IACb,kCAAe,CAAA;IACf,kDAA+B,CAAA;IAC/B,oCAAiB,CAAA;IACjB,6CAA0B,CAAA;IAC1B,wCAAqB,CAAA;IACrB,mDAAgC,CAAA;IAChC,uDAAoC,CAAA;IACpC,kCAAe,CAAA;AAChB,CAAC,EAZW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAY1B;AAED,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAChC,wCAAe,CAAA;IACf,wDAA+B,CAAA;AAChC,CAAC,EAHW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAGhC;AAED,IAAY,sBAMX;AAND,WAAY,sBAAsB;IACjC,yCAAe,CAAA;IACf,+CAAqB,CAAA;IACrB,6CAAmB,CAAA;IACnB,iEAAuC,CAAA;IACvC,+CAAqB,CAAA;AACtB,CAAC,EANW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAMjC;AAwID,IAAY,aAaX;AAbD,WAAY,aAAa;IACxB,sDAAqC,CAAA;IACrC,qFAAoE,CAAA;IACpE,0EAAyD,CA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E,EAAE;QACf,aAAa,EAAE;YACd,QAAQ,EAAE,KAAK;YACf,MAAM,EAAE,CAAC;SACT;QACD,aAAa,EAAE,EAAE;QACjB,iBAAiB,EAAE,EAAE;QACrB,aAAa,EAAE,IAAA,oCAAsB,GAAE;QACvC,aAAa,EAAE;YACd,eAAe,EAAE,EAAE;YACnB,gBAAgB,EAAE,EAAE;SACpB;QACD,iBAAiB,EAAE;YAClB,eAAe,EAAE,EAAE;YACnB,gBAAgB,EAAE,EAAE;SACpB;QACD,0BAA0B,EAAE,KAAK;KAKjC,CAAA;AACF,CAAC,CAAA;AA/BY,QAAA,kBAAkB,sBA+B9B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Interfaces/Cart/index.ts"],"names":[],"mappings":";;;AAGA,8CAA+G;AAe/G,6CAAmD;AACnD,6CAAkD;AAIlD,IAAY,eAYX;AAZD,WAAY,eAAe;IAC1B,oCAAiB,CAAA;IACjB,kCAAe,CAAA;IACf,gCAAa,CAAA;IACb,kCAAe,CAAA;IACf,kDAA+B,CAAA;IAC/B,oCAAiB,CAAA;IACjB,6CAA0B,CAAA;IAC1B,wCAAqB,CAAA;IACrB,mDAAgC,CAAA;IAChC,uDAAoC,CAAA;IACpC,kCAAe,CAAA;AAChB,CAAC,EAZW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAY1B;AAED,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAChC,wCAAe,CAAA;IACf,wDAA+B,CAAA;AAChC,CAAC,EAHW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAGhC;AAED,IAAY,sBAMX;AAND,WAAY,sBAAsB;IACjC,yCAAe,CAAA;IACf,+CAAqB,CAAA;IACrB,6CAAmB,CAAA;IACnB,iEAAuC,CAAA;IACvC,+CAAqB,CAAA;AACtB,CAAC,EANW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAMjC;AAwID,IAAY,aAaX;AAbD,WAAY,aAAa;IACxB,sDAAqC,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OAAO;QACN,GAAG,EAAE,EAAE;QACP,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,EAAE;QACR,UAAU,EAAE,EAAE;QACd,WAAW,EAAE,EAAE;QACf,GAAG,EAAE,CAAC;QACN,WAAW,EAAE,EAAE;QACf,WAAW,EAAE,EAAE;QACf,aAAa,EAAE;YACd,QAAQ,EAAE,KAAK;YACf,MAAM,EAAE,CAAC;SACT;QACD,aAAa,EAAE,EAAE;QACjB,iBAAiB,EAAE,EAAE;QACrB,aAAa,EAAE,IAAA,oCAAsB,GAAE;QACvC,aAAa,EAAE;YACd,eAAe,EAAE,EAAE;YACnB,gBAAgB,EAAE,EAAE;SACpB;QACD,iBAAiB,EAAE;YAClB,eAAe,EAAE,EAAE;YACnB,gBAAgB,EAAE,EAAE;SACpB;QACD,0BAA0B,EAAE,KAAK;KAKjC,CAAA;AACF,CAAC,CAAA;AA/BY,QAAA,kBAAkB,sBA+B9B"}
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export default interface IContextProps {
3
2
  readonly children: JSX.Element | JSX.Element[];
4
3
  readonly firebase_config: any;
@@ -1,3 +1,41 @@
1
+ export interface IG2ProductExternalValues {
2
+ catégorie1?: string;
3
+ catégorie2?: string;
4
+ noArticle?: string;
5
+ }
6
+ export interface IG2OrderExternalValues {
7
+ noCommande?: string;
8
+ }
9
+ export interface ICustomPriceItem {
10
+ readonly sku: string;
11
+ readonly parent_slug: string;
12
+ readonly name: string;
13
+ readonly price: number;
14
+ readonly reg: number;
15
+ readonly PA_price?: number;
16
+ readonly type: CustomPriceItemTypeEnum;
17
+ readonly percent?: number;
18
+ readonly PA_percent?: number;
19
+ readonly code1?: string;
20
+ readonly code2?: string;
21
+ readonly PA_code?: string;
22
+ readonly prod_type?: string;
23
+ }
24
+ export declare enum CustomPriceItemTypeEnum {
25
+ REG = "regular",
26
+ NORMAL_ESCOMPTE = "normal_escompte",
27
+ ENTENTE = "entente",
28
+ ESCOMPTE = "escompte"
29
+ }
30
+ export declare enum EscomptesDeclinationSkusEnum {
31
+ ESCVRAC = "ESCVRAC",
32
+ ESCOAKS = "ESCOAKS",
33
+ ESCRICHER = "ESCRICHER",
34
+ ESCBOLDUC = "ESCBOLDUC",
35
+ ESCRINOX = "ESCRINOX",
36
+ ESCINSTALL = "ESCINSTALL",
37
+ ESCACC = "ESCACC"
38
+ }
1
39
  export interface IG2Customer {
2
40
  readonly client: {
3
41
  readonly noClient: string;
@@ -87,10 +125,10 @@ export interface IG2Customer {
87
125
  readonly limiteDeCrédit: number | null;
88
126
  readonly fraisLivraisonMontantFixe: number | null;
89
127
  readonly fraisLivraisonMinimum: number | null;
90
- readonly dateOuverture: '2number | null22-number | null6-1number | nullT21:12:17.539Z';
91
- readonly dateDernièreMAJ: '2number | null22-number | null6-1number | nullT21:12:17.539Z';
92
- readonly créditDateCréation: '2number | null22-number | null6-1number | nullT21:12:17.539Z';
93
- readonly créditDateMAJ: '2number | null22-number | null6-1number | nullT21:12:17.539Z';
128
+ readonly dateOuverture: string | null;
129
+ readonly dateDernièreMAJ: string | null;
130
+ readonly créditDateCréation: string | null;
131
+ readonly créditDateMAJ: string | null;
94
132
  readonly exemptTPS: boolean;
95
133
  readonly exemptTVQ: boolean;
96
134
  readonly actif: boolean;
@@ -153,6 +191,141 @@ export interface IG2Customer {
153
191
  };
154
192
  readonly soumissions: IG2CustomerSoumission[];
155
193
  }
194
+ export interface IG2Product {
195
+ noArticle: string | null;
196
+ article: {
197
+ noArticle: string | null;
198
+ alias1: string | null;
199
+ alias2: string | null;
200
+ description: string | null;
201
+ description2: string | null;
202
+ catégorie1: string | null;
203
+ catégorie2: string | null;
204
+ manufacturier: string | null;
205
+ noArticleManufacturier: string | null;
206
+ siteWEBManufacturier: string | null;
207
+ codeUPC: string | null;
208
+ unitéDeMesure: string | null;
209
+ codeGLCoûtVentes: string | null;
210
+ sousCodeGLCoûtVentes1: string | null;
211
+ sousCodeGLCoûtVentes2: string | null;
212
+ codeGLVentes: string | null;
213
+ sousCodeGLVentes1: string | null;
214
+ sousCodeGLVentes2: string | null;
215
+ codeGLStocks: string | null;
216
+ sousCodeGLStocks1: string | null;
217
+ sousCodeGLStocks2: string | null;
218
+ codeGLAchatsDépenses: string | null;
219
+ sousCodeGLAchatsDépenses1: string | null;
220
+ sousCodeGLAchatsDépenses2: string | null;
221
+ codeGLStocksImputés: string | null;
222
+ sousCodeGLStocksImputés1: string | null;
223
+ sousCodeGLStocksImputés2: string | null;
224
+ codeGLAjustementStocks: string | null;
225
+ sousCodeGLAjustementStocks1: string | null;
226
+ sousCodeGLAjustementStocks2: string | null;
227
+ notes: string | null;
228
+ messageInactif: string | null;
229
+ noClassementDouanes: string | null;
230
+ groupePriseInventaire: string | null;
231
+ libre1: string | null;
232
+ libre2: string | null;
233
+ libre3: string | null;
234
+ libre4: string | null;
235
+ libre5: string | null;
236
+ groupeGrandeur: string | null;
237
+ codeTissu: string | null;
238
+ saison: string | null;
239
+ noFournisseur: string | null;
240
+ délaiRéapprovision: number | null;
241
+ typePosting: number | null;
242
+ typeMargeCoûtFixe: number | null;
243
+ typeCréationUPC: number | null;
244
+ fractionnerLotsRéception: number | null;
245
+ entrerCoûtVenteNonStocks: number | null;
246
+ poids: number | null;
247
+ volume: number | null;
248
+ surface: number | null;
249
+ qtéMinimale: number | null;
250
+ qtéSeuilRéapprovision: number | null;
251
+ qtéÉconomique: number | null;
252
+ coûtStandard: number | null;
253
+ margeCoûtFixe: number | null;
254
+ pourcCommission: number | null;
255
+ libreNum1: number | null;
256
+ libreNum2: number | null;
257
+ libreNum3: number | null;
258
+ libreNum4: number | null;
259
+ libreNum5: number | null;
260
+ commerceÉlectronique: boolean;
261
+ taxableTPS: boolean;
262
+ taxableTVQ: boolean;
263
+ stocker: boolean;
264
+ actif: boolean;
265
+ usageAchats: boolean;
266
+ usageVentes: boolean;
267
+ emballage: boolean;
268
+ utiliseCG: boolean;
269
+ saisieNoSérie: boolean;
270
+ dsp: boolean;
271
+ utiliseUPC: boolean;
272
+ };
273
+ image: {
274
+ noArticle: string | null;
275
+ sousCodeArticle1: string | null;
276
+ sousCodeArticle2: string | null;
277
+ imageRéf: string | null;
278
+ image1: string | null;
279
+ image2: string | null;
280
+ image3: string | null;
281
+ image4: string | null;
282
+ image5: string | null;
283
+ };
284
+ classification: {
285
+ noArticle: string | null;
286
+ notesPriseCommandeAchat: string | null;
287
+ notesPriseCommandeVente: string | null;
288
+ crééPar: string | null;
289
+ majPar: string | null;
290
+ noEtat: string | null;
291
+ imageRéfPDVO: string | null;
292
+ fichierATelecharger: string | null;
293
+ fichierATelecharger2: string | null;
294
+ idGroupeMajorationDéfaut: number | null;
295
+ dateCréation: string | null;
296
+ dateMAJ: string | null;
297
+ autorisationRequise: boolean;
298
+ msgQtéStocksPDVO: boolean;
299
+ prixJournalier: boolean;
300
+ };
301
+ messages: {
302
+ noArticle: string | null;
303
+ codeMessage: string | null;
304
+ }[] | null;
305
+ mLs: {
306
+ noArticle: string | null;
307
+ codeLangue: number;
308
+ description: string | null;
309
+ notes: string | null;
310
+ ficheTechnique: string | null;
311
+ fichierATelecharger: string | null;
312
+ fichierATelechargerDescription: string | null;
313
+ }[] | null;
314
+ prix: {
315
+ noArticle: string;
316
+ classePrix: number;
317
+ majPar: string;
318
+ prix: number;
319
+ dateDernièreMAJ: string;
320
+ }[];
321
+ prixQuantites: {
322
+ id: number;
323
+ noArticle: string | null;
324
+ classePrix: number | null;
325
+ quantité: number;
326
+ prix: number;
327
+ }[];
328
+ }
156
329
  export interface IG2CustomerSoumission {
157
330
  readonly noSoumission: string | null;
158
331
  readonly soumission: {
@@ -254,41 +427,149 @@ export declare enum G2EscompteClientTypeEnum {
254
427
  GROUPECLIENT_CAT1_ARTICLE = 7,
255
428
  GROUPECLIENT_CAT2_ARTICLE = 8
256
429
  }
257
- export interface ICustomPriceItem {
258
- readonly sku: string;
259
- readonly parent_slug: string;
260
- readonly name: string;
261
- readonly price: number;
262
- readonly reg: number;
263
- readonly PA_price?: number;
264
- readonly type: CustomPriceItemTypeEnum;
265
- readonly percent?: number;
266
- readonly PA_percent?: number;
267
- readonly code1?: string;
268
- readonly code2?: string;
269
- readonly PA_code?: string;
270
- readonly prod_type?: string;
430
+ export interface IG2Representant {
431
+ noRepresentant: string | null;
432
+ nom: string | null;
433
+ courriel: string | null;
434
+ pourcCommission: number | null;
271
435
  }
272
- export declare enum CustomPriceItemTypeEnum {
273
- REG = "regular",
274
- NORMAL_ESCOMPTE = "normal_escompte",
275
- ENTENTE = "entente",
276
- ESCOMPTE = "escompte"
436
+ export interface IG2ProvinceTaxation {
437
+ provinceTaxation: {
438
+ noProvince: string | null;
439
+ description: string | null;
440
+ codeGLTPS: string | null;
441
+ sousCodeGLTPS1: string | null;
442
+ sousCodeGLTPS2: string | null;
443
+ codeGLTVP: string | null;
444
+ sousCodeGLTVP1: string | null;
445
+ sousCodeGLTVP2: string | null;
446
+ tpsDescription: string | null;
447
+ tpsDescription2: string | null;
448
+ tvpDescription: string | null;
449
+ tvpDescription2: string | null;
450
+ tauxTPS: number | null;
451
+ tauxTVP: number | null;
452
+ pourcentageDépense: number | null;
453
+ calculerTVPsurTPS: boolean;
454
+ };
277
455
  }
278
- export declare enum EscomptesDeclinationSkusEnum {
279
- ESCVRAC = "ESCVRAC",
280
- ESCOAKS = "ESCOAKS",
281
- ESCRICHER = "ESCRICHER",
282
- ESCBOLDUC = "ESCBOLDUC",
283
- ESCRINOX = "ESCRINOX",
284
- ESCINSTALL = "ESCINSTALL",
285
- ESCACC = "ESCACC"
456
+ export interface IG2Order {
457
+ noClient: string;
458
+ noProvinceTaxation: string;
459
+ condition: string;
460
+ noRepresentant: string;
461
+ noDivision?: string | null;
462
+ vendua?: string | null;
463
+ noMagasin?: string | null;
464
+ livreaNom?: string | null;
465
+ livreaDepartement?: string | null;
466
+ livreaAdresse?: string | null;
467
+ livreaVille?: string | null;
468
+ livreaProvince?: string | null;
469
+ livreaPays?: string | null;
470
+ livreaCodePostal?: string | null;
471
+ livreaTelephone?: string | null;
472
+ commandePar?: string | null;
473
+ noCommDuClient?: string | null;
474
+ transport?: string | null;
475
+ noEntreprise?: string | null;
476
+ noTVQ?: string | null;
477
+ deviseEtrangere?: string | null;
478
+ codeGLComptesClients?: string | null;
479
+ sousCodeGLComptesClients1?: string | null;
480
+ sousCodeGLComptesClients2?: string | null;
481
+ notes?: string | null;
482
+ description?: string | null;
483
+ noEntrepot?: string | null;
484
+ noProjet?: string | null;
485
+ noProjetSousCode1?: string | null;
486
+ noProjetSousCode2?: string | null;
487
+ libre1?: string | null;
488
+ libre2?: string | null;
489
+ libre3?: string | null;
490
+ noPropositionDePrix?: string | null;
491
+ creePar?: string | null;
492
+ approuveePar?: string | null;
493
+ noFactureAssocie?: string | null;
494
+ joursEcheance?: number | null;
495
+ joursReglementAnticipe?: number | null;
496
+ langue?: number | null;
497
+ commandeSuspendue?: number | null;
498
+ pourcEscReglementAnticipe?: number | null;
499
+ libreNum1?: number | null;
500
+ libreNum2?: number | null;
501
+ libreNum3?: number | null;
502
+ fraisLivraisons: number;
503
+ date?: Date | null;
504
+ dateRequis?: Date | null;
505
+ dateCréation?: Date | null;
506
+ dateMiseAjour?: Date | null;
507
+ dateAnnulation?: Date | null;
508
+ dateApprobation?: Date | null;
509
+ noteDeCredit?: boolean | null;
510
+ exemptTPS?: boolean | null;
511
+ exemptTVQ?: boolean | null;
512
+ calculerTVPsurTPS?: boolean | null;
513
+ echeanceDeFinMois?: boolean | null;
514
+ reglementAnticipeDeFinMois?: boolean | null;
515
+ calculeEscompteAvantTaxes?: boolean | null;
516
+ fraisLivraisonsTaxableTPS?: boolean | null;
517
+ fraisLivraisonsTaxableTVQ?: boolean | null;
518
+ imprime?: boolean | null;
519
+ commandeLivree?: boolean | null;
520
+ masquerPrixDetaillesFacture?: boolean | null;
521
+ details: IG2OrderItem[];
286
522
  }
287
- export interface IG2ProductExternalValues {
288
- catégorie1?: string;
289
- catégorie2?: string;
290
- noArticle?: string;
523
+ export interface IG2OrderItem {
524
+ noArticle: string;
525
+ ordreDeTri: number;
526
+ groupeArticleEquivalent: number;
527
+ description?: string | null;
528
+ message?: string | null;
529
+ noProjet?: string | null;
530
+ noProjetSousCode1?: string | null;
531
+ noProjetSousCode2?: string | null;
532
+ libre1?: string | null;
533
+ libre2?: string | null;
534
+ libre3?: string | null;
535
+ sku?: string | null;
536
+ noBonProduction?: string | null;
537
+ noRequisition?: string | null;
538
+ codeAnnulationBO?: string | null;
539
+ noCommis?: string | null;
540
+ codeGLCoutdeVentes?: string | null;
541
+ sousCodeGLCoutdeVentes1?: string | null;
542
+ sousCodeGLCoutdeVentes2?: string | null;
543
+ noFournisseurCoutdeVentes?: string | null;
544
+ notesCoutdeVentes?: string | null;
545
+ codeGLAchatsDepenses?: string | null;
546
+ sousCodeGLAchatsDepenses1?: string | null;
547
+ sousCodeGLAchatsDepenses2?: string | null;
548
+ referenceArticleEquivalent: number;
549
+ noReferencePDVO?: number | null;
550
+ noReferenceNoSequencePDVO?: number | null;
551
+ quantite?: number | null;
552
+ prixUnitaire?: number | null;
553
+ pourcCommission: number;
554
+ pourcEscompte?: number;
555
+ poidsUnitaire?: number | null;
556
+ libreNum1: number;
557
+ libreNum2: number;
558
+ libreNum3: number;
559
+ prixDetailSuggere: number;
560
+ prixMinimum: number;
561
+ montantCommission: number;
562
+ coutdeVenteUnitaire: number;
563
+ dateAnnulationBO?: Date | null;
564
+ taxableTPS?: boolean | null;
565
+ taxableTVQ?: boolean | null;
566
+ boAnnule?: boolean | null;
567
+ prixModifieUtilisateur?: boolean | null;
568
+ escompteModifieUtilisateur?: boolean | null;
569
+ articleKit?: boolean | null;
570
+ dsp?: boolean | null;
291
571
  }
292
- export interface IG2OrderExternalValues {
293
- noCommande?: string;
572
+ export declare enum G2OrderSaveErrors {
573
+ G2_ERROR = "g2_error",
574
+ ADDIO_SAVE_CART_ERROR = "addio_save_cart_error"
294
575
  }
@@ -1,17 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EscomptesDeclinationSkusEnum = exports.CustomPriceItemTypeEnum = exports.G2EscompteClientTypeEnum = void 0;
4
- var G2EscompteClientTypeEnum;
5
- (function (G2EscompteClientTypeEnum) {
6
- G2EscompteClientTypeEnum[G2EscompteClientTypeEnum["CLIENT"] = 1] = "CLIENT";
7
- G2EscompteClientTypeEnum[G2EscompteClientTypeEnum["CLIENT_ARTICLE"] = 2] = "CLIENT_ARTICLE";
8
- G2EscompteClientTypeEnum[G2EscompteClientTypeEnum["CLIENT_CAT1_ARTICLE"] = 3] = "CLIENT_CAT1_ARTICLE";
9
- G2EscompteClientTypeEnum[G2EscompteClientTypeEnum["CLIENT_CAT2_ARTICLE"] = 4] = "CLIENT_CAT2_ARTICLE";
10
- G2EscompteClientTypeEnum[G2EscompteClientTypeEnum["GROUPECLIENT"] = 5] = "GROUPECLIENT";
11
- G2EscompteClientTypeEnum[G2EscompteClientTypeEnum["GROUPECLIENT_ARTICLE"] = 6] = "GROUPECLIENT_ARTICLE";
12
- G2EscompteClientTypeEnum[G2EscompteClientTypeEnum["GROUPECLIENT_CAT1_ARTICLE"] = 7] = "GROUPECLIENT_CAT1_ARTICLE";
13
- G2EscompteClientTypeEnum[G2EscompteClientTypeEnum["GROUPECLIENT_CAT2_ARTICLE"] = 8] = "GROUPECLIENT_CAT2_ARTICLE";
14
- })(G2EscompteClientTypeEnum = exports.G2EscompteClientTypeEnum || (exports.G2EscompteClientTypeEnum = {}));
3
+ exports.G2OrderSaveErrors = exports.G2EscompteClientTypeEnum = exports.EscomptesDeclinationSkusEnum = exports.CustomPriceItemTypeEnum = void 0;
15
4
  var CustomPriceItemTypeEnum;
16
5
  (function (CustomPriceItemTypeEnum) {
17
6
  CustomPriceItemTypeEnum["REG"] = "regular";
@@ -29,4 +18,20 @@ var EscomptesDeclinationSkusEnum;
29
18
  EscomptesDeclinationSkusEnum["ESCINSTALL"] = "ESCINSTALL";
30
19
  EscomptesDeclinationSkusEnum["ESCACC"] = "ESCACC";
31
20
  })(EscomptesDeclinationSkusEnum = exports.EscomptesDeclinationSkusEnum || (exports.EscomptesDeclinationSkusEnum = {}));
21
+ var G2EscompteClientTypeEnum;
22
+ (function (G2EscompteClientTypeEnum) {
23
+ G2EscompteClientTypeEnum[G2EscompteClientTypeEnum["CLIENT"] = 1] = "CLIENT";
24
+ G2EscompteClientTypeEnum[G2EscompteClientTypeEnum["CLIENT_ARTICLE"] = 2] = "CLIENT_ARTICLE";
25
+ G2EscompteClientTypeEnum[G2EscompteClientTypeEnum["CLIENT_CAT1_ARTICLE"] = 3] = "CLIENT_CAT1_ARTICLE";
26
+ G2EscompteClientTypeEnum[G2EscompteClientTypeEnum["CLIENT_CAT2_ARTICLE"] = 4] = "CLIENT_CAT2_ARTICLE";
27
+ G2EscompteClientTypeEnum[G2EscompteClientTypeEnum["GROUPECLIENT"] = 5] = "GROUPECLIENT";
28
+ G2EscompteClientTypeEnum[G2EscompteClientTypeEnum["GROUPECLIENT_ARTICLE"] = 6] = "GROUPECLIENT_ARTICLE";
29
+ G2EscompteClientTypeEnum[G2EscompteClientTypeEnum["GROUPECLIENT_CAT1_ARTICLE"] = 7] = "GROUPECLIENT_CAT1_ARTICLE";
30
+ G2EscompteClientTypeEnum[G2EscompteClientTypeEnum["GROUPECLIENT_CAT2_ARTICLE"] = 8] = "GROUPECLIENT_CAT2_ARTICLE";
31
+ })(G2EscompteClientTypeEnum = exports.G2EscompteClientTypeEnum || (exports.G2EscompteClientTypeEnum = {}));
32
+ var G2OrderSaveErrors;
33
+ (function (G2OrderSaveErrors) {
34
+ G2OrderSaveErrors["G2_ERROR"] = "g2_error";
35
+ G2OrderSaveErrors["ADDIO_SAVE_CART_ERROR"] = "addio_save_cart_error";
36
+ })(G2OrderSaveErrors = exports.G2OrderSaveErrors || (exports.G2OrderSaveErrors = {}));
32
37
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Interfaces/G2/index.ts"],"names":[],"mappings":";;;AA2PA,IAAY,wBASX;AATD,WAAY,wBAAwB;IACnC,2EAAU,CAAA;IACV,2FAAc,CAAA;IACd,qGAAmB,CAAA;IACnB,qGAAmB,CAAA;IACnB,uFAAY,CAAA;IACZ,uGAAoB,CAAA;IACpB,iHAAyB,CAAA;IACzB,iHAAyB,CAAA;AAC1B,CAAC,EATW,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QASnC;AAkBD,IAAY,uBAKX;AALD,WAAY,uBAAuB;IAClC,0CAAe,CAAA;IACf,8DAAmC,CAAA;IACnC,8CAAmB,CAAA;IACnB,gDAAqB,CAAA;AACtB,CAAC,EALW,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAKlC;AAED,IAAY,4BAQX;AARD,WAAY,4BAA4B;IACvC,mDAAmB,CAAA;IACnB,mDAAmB,CAAA;IACnB,uDAAuB,CAAA;IACvB,uDAAuB,CAAA;IACvB,qDAAqB,CAAA;IACrB,yDAAyB,CAAA;IACzB,iDAAiB,CAAA;AAClB,CAAC,EARW,4BAA4B,GAA5B,oCAA4B,KAA5B,oCAA4B,QAQvC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Interfaces/G2/index.ts"],"names":[],"mappings":";;;AA8BA,IAAY,uBAKX;AALD,WAAY,uBAAuB;IAClC,0CAAe,CAAA;IACf,8DAAmC,CAAA;IACnC,8CAAmB,CAAA;IACnB,gDAAqB,CAAA;AACtB,CAAC,EALW,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAKlC;AAED,IAAY,4BAQX;AARD,WAAY,4BAA4B;IACvC,mDAAmB,CAAA;IACnB,mDAAmB,CAAA;IACnB,uDAAuB,CAAA;IACvB,uDAAuB,CAAA;IACvB,qDAAqB,CAAA;IACrB,yDAAyB,CAAA;IACzB,iDAAiB,CAAA;AAClB,CAAC,EARW,4BAA4B,GAA5B,oCAA4B,KAA5B,oCAA4B,QAQvC;AAgZD,IAAY,wBASX;AATD,WAAY,wBAAwB;IACnC,2EAAU,CAAA;IACV,2FAAc,CAAA;IACd,qGAAmB,CAAA;IACnB,qGAAmB,CAAA;IACnB,uFAAY,CAAA;IACZ,uGAAoB,CAAA;IACpB,iHAAyB,CAAA;IACzB,iHAAyB,CAAA;AAC1B,CAAC,EATW,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QASnC;AAoJD,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC5B,0CAAqB,CAAA;IACrB,oEAA+C,CAAA;AAChD,CAAC,EAHW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAG5B"}
@@ -359,3 +359,10 @@ export interface IFixedPromoBanner {
359
359
  end: Date;
360
360
  }[];
361
361
  }
362
+ export interface IShippingServiceZone {
363
+ description: string;
364
+ polygon: string;
365
+ base_fee: number;
366
+ slug: string;
367
+ name: string;
368
+ }
@@ -22,6 +22,7 @@ export default interface ITransferRequest {
22
22
  readonly created_by: string;
23
23
  readonly draft?: boolean;
24
24
  readonly associated_order?: string;
25
+ readonly completed?: boolean;
25
26
  }
26
27
  export declare enum TransferRequestStatusEnum {
27
28
  OPEN = "OPEN",
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Interfaces/TransferRequest/index.ts"],"names":[],"mappings":";;;AA2BA,IAAY,yBAKX;AALD,WAAY,yBAAyB;IACpC,0CAAa,CAAA;IACb,sDAAyB,CAAA;IACzB,kDAAqB,CAAA;IACrB,oDAAuB,CAAA;AACxB,CAAC,EALW,yBAAyB,GAAzB,iCAAyB,KAAzB,iCAAyB,QAKpC;AAEY,QAAA,0BAA0B,GAAmD;IACzF,CAAC,EAAE,CAAC,yBAAyB,CAAC,IAAI,CAAC;IACnC,CAAC,EAAE,CAAC,yBAAyB,CAAC,UAAU,CAAC;IACzC,CAAC,EAAE,CAAC,yBAAyB,CAAC,QAAQ,CAAC;CACvC,CAAA;AAEM,IAAM,yBAAyB,GAAG,UAAC,OAAe,IAAuB,OAAA,CAAC;IAChF,IAAI,EAAE,EAAE;IACR,EAAE,EAAE,EAAE;IACN,QAAQ,EAAE,EAAE;IACZ,MAAM,EAAE,yBAAyB,CAAC,IAAI;IACtC,gBAAgB,EAAE;QACjB;YACC,MAAM,EAAE,yBAAyB,CAAC,IAAI;YACtC,IAAI,EAAE,IAAI,IAAI,EAAE;YAChB,UAAU,EAAE,OAAO;SACnB;KACD;IACD,UAAU,EAAE,OAAO;IACnB,KAAK,EAAE,IAAI;CACX,CAAC,EAd8E,CAc9E,CAAA;AAdW,QAAA,yBAAyB,6BAcpC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Interfaces/TransferRequest/index.ts"],"names":[],"mappings":";;;AA4BA,IAAY,yBAKX;AALD,WAAY,yBAAyB;IACpC,0CAAa,CAAA;IACb,sDAAyB,CAAA;IACzB,kDAAqB,CAAA;IACrB,oDAAuB,CAAA;AACxB,CAAC,EALW,yBAAyB,GAAzB,iCAAyB,KAAzB,iCAAyB,QAKpC;AAEY,QAAA,0BAA0B,GAAmD;IACzF,CAAC,EAAE,CAAC,yBAAyB,CAAC,IAAI,CAAC;IACnC,CAAC,EAAE,CAAC,yBAAyB,CAAC,UAAU,CAAC;IACzC,CAAC,EAAE,CAAC,yBAAyB,CAAC,QAAQ,CAAC;CACvC,CAAA;AAEM,IAAM,yBAAyB,GAAG,UAAC,OAAe,IAAuB,OAAA,CAAC;IAChF,IAAI,EAAE,EAAE;IACR,EAAE,EAAE,EAAE;IACN,QAAQ,EAAE,EAAE;IACZ,MAAM,EAAE,yBAAyB,CAAC,IAAI;IACtC,gBAAgB,EAAE;QACjB;YACC,MAAM,EAAE,yBAAyB,CAAC,IAAI;YACtC,IAAI,EAAE,IAAI,IAAI,EAAE;YAChB,UAAU,EAAE,OAAO;SACnB;KACD;IACD,UAAU,EAAE,OAAO;IACnB,KAAK,EAAE,IAAI;CACX,CAAC,EAd8E,CAc9E,CAAA;AAdW,QAAA,yBAAyB,6BAcpC"}
@@ -181,5 +181,6 @@ export default class Cart extends BaseServiceClass<ICart> {
181
181
  setCartAsProcessed: (processedAtStore: IStore, space: Space, currentUser?: IUser) => Promise<string | undefined>;
182
182
  changeProcessingStoreForCart: (newProcessedAtStore: IStore, space: Space, currentUser?: IUser) => Promise<boolean>;
183
183
  setCartWithInvoiceRef: (space: Space, saveToDatabase?: boolean, newCartRef?: string) => Promise<string | undefined>;
184
+ setG2ExternalOrderRef: (space: Space, saveToDatabase?: boolean, newlyCreatedCartData?: Partial<ICart>) => Promise<string | undefined>;
184
185
  setCartAsRefunded: (partial: Partial<ICart>, itemsToReturnInventory: ICartItem[], storeId: string) => Promise<string | undefined>;
185
186
  }