addio-admin-sdk 1.6.77 → 1.6.78-canary-2
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/changelog.md +18 -0
- package/dist/Interfaces/Algolia/index.d.ts +5 -4
- package/dist/Interfaces/Cart/index.d.ts +8 -3
- package/dist/Interfaces/Cart/index.js +6 -1
- package/dist/Interfaces/Cart/index.js.map +1 -1
- package/dist/Interfaces/Context/IContextProps.d.ts +0 -1
- package/dist/Interfaces/Customer/index.d.ts +1 -0
- package/dist/Interfaces/Customer/index.js.map +1 -1
- package/dist/Interfaces/G2/index.d.ts +318 -37
- package/dist/Interfaces/G2/index.js +17 -12
- package/dist/Interfaces/G2/index.js.map +1 -1
- package/dist/Interfaces/Payment/index.d.ts +1 -0
- package/dist/Interfaces/Space/index.d.ts +7 -0
- package/dist/lib/Cart/index.d.ts +1 -0
- package/dist/lib/Cart/index.js +140 -52
- package/dist/lib/Cart/index.js.map +1 -1
- package/dist/lib/Space/index.d.ts +4 -1
- package/dist/lib/Space/index.js +35 -17
- package/dist/lib/Space/index.js.map +1 -1
- package/dist/rules/GR/interfaces/cart.d.ts +4 -1
- package/dist/rules/GR/interfaces/cart.js +2 -0
- package/dist/rules/GR/interfaces/cart.js.map +1 -1
- package/dist/rules/GR/utils/cart.d.ts +18 -4
- package/dist/rules/GR/utils/cart.js +106 -6
- package/dist/rules/GR/utils/cart.js.map +1 -1
- package/dist/rules/GR/utils/expedition.js +10 -4
- package/dist/rules/GR/utils/expedition.js.map +1 -1
- package/dist/rules/GR/utils/g2.d.ts +15 -1
- package/dist/rules/GR/utils/g2.js +109 -64
- package/dist/rules/GR/utils/g2.js.map +1 -1
- package/dist/rules/GR/utils/upsells.d.ts +2 -2
- package/dist/rules/GR/utils/upsells.js +3 -3
- package/dist/rules/GR/utils/upsells.js.map +1 -1
- package/dist/services/g2/G2OrderSlip.js +4 -1
- package/dist/services/g2/G2OrderSlip.js.map +1 -1
- package/dist/services/g2/utils.js +24 -15
- package/dist/services/g2/utils.js.map +1 -1
- package/dist/services/logs/index.d.ts +9 -0
- package/dist/services/logs/index.js +33 -1
- package/dist/services/logs/index.js.map +1 -1
- package/dist/utils/cart.d.ts +25 -186
- package/dist/utils/cart.js +136 -6
- package/dist/utils/cart.js.map +1 -1
- package/dist/utils/data.d.ts +4 -1
- package/dist/utils/data.js +20 -6
- package/dist/utils/data.js.map +1 -1
- package/dist/utils/discount.js +1 -1
- package/dist/utils/discount.js.map +1 -1
- package/dist/utils/zones.d.ts +3 -2
- package/dist/utils/zones.js.map +1 -1
- package/package.json +5 -1
package/changelog.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
## [17-02-2025]
|
|
2
|
+
|
|
3
|
+
### Première dates de disponibilité - Ajustements 2025
|
|
4
|
+
|
|
5
|
+
- **Added**
|
|
6
|
+
- **Changed**
|
|
7
|
+
- New checks for AM availability if saturday and grass or "green" concrete in cart - Now AM is available up untill 16h00 (function `getAvailableHours`)
|
|
8
|
+
- **Fixed**
|
|
9
|
+
|
|
10
|
+
## [14-02-2025]
|
|
11
|
+
|
|
12
|
+
### Première dates de disponibilité - Ajustements 2025
|
|
13
|
+
|
|
14
|
+
- **Added**
|
|
15
|
+
- **Changed**
|
|
16
|
+
- New checks for if between 10h and 16h for certain days and certain cart types (function `getMinDateOffset`)
|
|
17
|
+
- **Fixed**
|
|
18
|
+
|
|
1
19
|
## [05-09-2024]
|
|
2
20
|
|
|
3
21
|
### Frais par palette - Ajustement
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CartCustomerEnum, CartStatusEnum, CartTypeEnum,
|
|
1
|
+
import { CartCustomerEnum, CartStatusEnum, CartTypeEnum, ICartItemPrices, ICartPromoApplied, IIndexedDeclination } from '../Cart';
|
|
2
2
|
import { CustomerTypeEnum, IBasicInfoCustomer, ICompanyInfoCustomer, IExpeditionInfo } from '../Customer';
|
|
3
3
|
import { MarketplaceTypeEnum } from '../MarketplacePublication';
|
|
4
4
|
import ITranslation from '../Translation';
|
|
@@ -109,8 +109,8 @@ export interface IIndexedCart {
|
|
|
109
109
|
readonly invoice_ref?: string | null;
|
|
110
110
|
readonly keywords: string[];
|
|
111
111
|
readonly cart_slug_list?: string[] | null;
|
|
112
|
-
readonly created_at: number;
|
|
113
|
-
readonly updated_at: number;
|
|
112
|
+
readonly created_at: number | null;
|
|
113
|
+
readonly updated_at: number | null;
|
|
114
114
|
readonly paid_at?: number | null;
|
|
115
115
|
readonly processed_at?: number | null;
|
|
116
116
|
readonly store?: {
|
|
@@ -118,12 +118,13 @@ export interface IIndexedCart {
|
|
|
118
118
|
readonly name: string;
|
|
119
119
|
} | null;
|
|
120
120
|
readonly order_type?: string | null;
|
|
121
|
-
readonly assigned_to?:
|
|
121
|
+
readonly assigned_to?: string | null;
|
|
122
122
|
readonly from_marketplace?: MarketplaceTypeEnum | null;
|
|
123
123
|
readonly paid_by?: string | null;
|
|
124
124
|
readonly multiple_payments?: boolean | null;
|
|
125
125
|
readonly project_number?: string | null;
|
|
126
126
|
readonly customer_company_name?: string | null;
|
|
127
|
+
readonly customer_external_class?: string | null;
|
|
127
128
|
readonly out_of_zone?: boolean | null;
|
|
128
129
|
readonly is_promise_to_purchase?: boolean | null;
|
|
129
130
|
readonly items?: {
|
|
@@ -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",
|
|
@@ -76,6 +76,7 @@ export default interface ICart extends IBaseClass {
|
|
|
76
76
|
readonly terms_code?: string;
|
|
77
77
|
readonly previous_terms_code?: string;
|
|
78
78
|
readonly company_name?: string;
|
|
79
|
+
readonly customer_external_class?: string;
|
|
79
80
|
};
|
|
80
81
|
readonly discount_rules: IDiscountRule[];
|
|
81
82
|
readonly error?: string;
|
|
@@ -276,7 +277,7 @@ export interface IIndexedDeclination {
|
|
|
276
277
|
readonly id?: string;
|
|
277
278
|
readonly sku: string;
|
|
278
279
|
readonly supplier_code?: string;
|
|
279
|
-
readonly slug
|
|
280
|
+
readonly slug?: string;
|
|
280
281
|
readonly name: ITranslation[];
|
|
281
282
|
readonly description: ITranslation[];
|
|
282
283
|
readonly images_path: IImageInfo[];
|
|
@@ -323,7 +324,7 @@ export interface IIndexedDeclination {
|
|
|
323
324
|
readonly is_service?: boolean;
|
|
324
325
|
readonly is_other_type?: string;
|
|
325
326
|
readonly hide_inventory?: boolean;
|
|
326
|
-
readonly external_values?:
|
|
327
|
+
readonly external_values?: IG2ProductExternalValues;
|
|
327
328
|
readonly promise_to_purchase_association_ids?: string[];
|
|
328
329
|
}
|
|
329
330
|
export interface IProductUpsell extends IIndexedDeclination {
|
|
@@ -399,6 +400,10 @@ export interface ICartPaymentPayloadOptions {
|
|
|
399
400
|
};
|
|
400
401
|
multi_payment_methods?: IPayment[];
|
|
401
402
|
}
|
|
403
|
+
export declare enum CustomPromoType {
|
|
404
|
+
UNIT_PRICE = "unit_price",
|
|
405
|
+
EXTRA_PROMO = "extra_promo"
|
|
406
|
+
}
|
|
402
407
|
export declare const getPromoCodeError: (errCode: string, locale?: string) => string;
|
|
403
408
|
export declare const getDefaultCart: (cartType?: CartTypeEnum) => ICart;
|
|
404
409
|
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;
|
|
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,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E;QACpB,KAAK,EAAE,EAAE;QACT,KAAK,EAAE,CAAC;QACR,SAAS,EAAE,KAAK;QAChB,MAAM,EAAE,cAAc,CAAC,KAAK;QAC5B,KAAK,EAAE,EAAE;QACT,iBAAiB,EAAE,EAAE;QACrB,MAAM,EAAE,IAAI;KACZ,CAAA;AACF,CAAC,CAAA;AAxBY,QAAA,cAAc,kBAwB1B;AAEM,IAAM,kBAAkB,GAAG;IACjC,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"}
|
|
@@ -50,6 +50,7 @@ export interface IBasicInfoCustomer {
|
|
|
50
50
|
readonly external_customer_group?: string;
|
|
51
51
|
readonly external_customer_code?: string;
|
|
52
52
|
readonly external_price_class?: string;
|
|
53
|
+
readonly external_customer_class?: string;
|
|
53
54
|
} | null;
|
|
54
55
|
readonly customer_accountStatus: 'active' | 'pending' | 'inactive';
|
|
55
56
|
readonly customer_communicationPreference: 'email' | 'phone';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Interfaces/Customer/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,sCAAwD;AACxD,iCAAiC;AACjC,gDAAmC;AAUnC,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC3B,mCAAe,CAAA;IACf,uCAAmB,CAAA;AACpB,CAAC,EAHW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAG3B;AAED,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAChC,wCAAe,CAAA;IACf,wCAAe,CAAA;IACf,8CAAqB,CAAA;AACtB,CAAC,EAJW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAIhC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Interfaces/Customer/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,sCAAwD;AACxD,iCAAiC;AACjC,gDAAmC;AAUnC,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC3B,mCAAe,CAAA;IACf,uCAAmB,CAAA;AACpB,CAAC,EAHW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAG3B;AAED,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAChC,wCAAe,CAAA;IACf,wCAAe,CAAA;IACf,8CAAqB,CAAA;AACtB,CAAC,EAJW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAIhC;AAsEM,IAAM,kBAAkB,GAAG;IACjC,OAAO;QACN,EAAE,EAAE,EAAE;QACN,IAAI,EAAE,gBAAgB,CAAC,KAAK;QAC5B,UAAU,EAAE,IAAA,+BAAuB,GAAE;QACrC,YAAY,EAAE,IAAA,6BAAqB,GAAE;QACrC,eAAe,EAAE,EAAE;QACnB,MAAM,EAAE;YACP,IAAI,EAAE,CAAC;YACP,EAAE,EAAE,CAAC;YACL,MAAM,EAAE,EAAE;SACV;QACD,cAAc,EAAE,CAAC;KACjB,CAAA;AACF,CAAC,CAAA;AAdY,Q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2?: 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:
|
|
91
|
-
readonly dateDernièreMAJ:
|
|
92
|
-
readonly créditDateCréation:
|
|
93
|
-
readonly créditDateMAJ:
|
|
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
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
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
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
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
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
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
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
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
|
|
293
|
-
|
|
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.
|
|
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":";;;
|
|
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"}
|
package/dist/lib/Cart/index.d.ts
CHANGED
|
@@ -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
|
}
|