addio-admin-sdk 1.6.78 → 1.6.79
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/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 +319 -57
- package/dist/Interfaces/G2/index.js +17 -12
- package/dist/Interfaces/G2/index.js.map +1 -1
- package/dist/Interfaces/Payment/index.d.ts +2 -0
- package/dist/Interfaces/Space/index.d.ts +16 -0
- package/dist/Interfaces/Space/index.js.map +1 -1
- package/dist/Interfaces/Store/index.d.ts +1 -0
- package/dist/Interfaces/Store/index.js.map +1 -1
- package/dist/Interfaces/TransferRequest/index.d.ts +24 -1
- package/dist/Interfaces/TransferRequest/index.js.map +1 -1
- package/dist/lib/Cart/index.d.ts +1 -0
- package/dist/lib/Cart/index.js +165 -73
- package/dist/lib/Cart/index.js.map +1 -1
- package/dist/lib/PandaPay/index.js +0 -1
- package/dist/lib/PandaPay/index.js.map +1 -1
- package/dist/lib/PromiseToPurchase/index.d.ts +4 -2
- package/dist/lib/PromiseToPurchase/index.js +14 -13
- package/dist/lib/PromiseToPurchase/index.js.map +1 -1
- package/dist/lib/Space/index.d.ts +9 -1
- package/dist/lib/Space/index.js +1163 -1099
- package/dist/lib/Space/index.js.map +1 -1
- package/dist/lib/baseService.d.ts +1 -1
- package/dist/lib/baseService.js +3 -2
- package/dist/lib/baseService.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/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/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/inventories.js +1 -3
- package/dist/utils/inventories.js.map +1 -1
- package/dist/utils/searchIndexes.d.ts +1 -0
- package/dist/utils/searchIndexes.js +50 -5
- package/dist/utils/searchIndexes.js.map +1 -1
- package/dist/utils/update.d.ts +1 -1
- package/dist/utils/update.js +3 -2
- package/dist/utils/update.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/publish.sh +1 -1
|
@@ -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,KAArB,6BAAqB,QAGhC;AAED,IAAY,sBAMX;AAND,WAAY,sBAAsB;IACjC,yCAAe,CAAA;IACf,+CAAqB,CAAA;IACrB,6CAAmB,CAAA;IACnB,i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E,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,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CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,OACxF;oBACD,yBAAyB,EAAE,QAAQ,CAAC,IAAI;oBACxC,0BAA0B,EAAE,QAAQ,CAAC,KAAK;iBAC1C;aACD,EACD,EAAE,EAAE,QAAQ,CAAC,EAAE,EACf,KAAK,EAAE,QAAQ,CAAC,KAAK,EACrB,eAAe,EAAE,CAAC,CAAC,KAAK,IAAI,KAAK,KAAK,IAAI,EAC1C,cAAc,EAAE,QAAQ,CAAC,cAAc,KACpC,CAAC,CAAC,CAAC,KAAK,IAAI,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,GAC9D,CAAC,CAAC,CAAC,KAAK,IAAI,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,iBAAiB,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,GACpE,CAAC,CAAC,CAAC,KAAK,IAAI,KAAK,KAAK,IAAI;YAC5B,CAAC,CAAC;gBACA,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,EAAE,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;aAC9F;YACH,CAAC,CAAC,EAAE,CAAC,CACO,CAAA;IACf,CAAC,CAAgB,CAAA;AAClB,CAAC,CAAA;AA5EY,QAAA,iBAAiB,qBA4E7B"}
|
|
@@ -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:
|
|
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;
|
|
@@ -131,28 +169,144 @@ export interface IG2Customer {
|
|
|
131
169
|
}
|
|
132
170
|
];
|
|
133
171
|
};
|
|
134
|
-
readonly provinceTaxation:
|
|
135
|
-
readonly provinceTaxation: {
|
|
136
|
-
readonly noProvince: string | null;
|
|
137
|
-
readonly description: string | null;
|
|
138
|
-
readonly codeGLTPS: string | null;
|
|
139
|
-
readonly sousCodeGLTPS1: string | null;
|
|
140
|
-
readonly sousCodeGLTPS2: string | null;
|
|
141
|
-
readonly codeGLTVP: string | null;
|
|
142
|
-
readonly sousCodeGLTVP1: string | null;
|
|
143
|
-
readonly sousCodeGLTVP2: string | null;
|
|
144
|
-
readonly tpsDescription: string | null;
|
|
145
|
-
readonly tpsDescription2: string | null;
|
|
146
|
-
readonly tvpDescription: string | null;
|
|
147
|
-
readonly tvpDescription2: string | null;
|
|
148
|
-
readonly tauxTPS: number | null;
|
|
149
|
-
readonly tauxTVP: number | null;
|
|
150
|
-
readonly pourcentageDépense: number | null;
|
|
151
|
-
readonly calculerTVPsurTPS: boolean;
|
|
152
|
-
};
|
|
153
|
-
};
|
|
172
|
+
readonly provinceTaxation: IG2ProvinceTaxation;
|
|
154
173
|
readonly soumissions: IG2CustomerSoumission[];
|
|
155
174
|
}
|
|
175
|
+
export interface IG2Product {
|
|
176
|
+
noArticle: string | null;
|
|
177
|
+
article: {
|
|
178
|
+
noArticle: string | null;
|
|
179
|
+
alias1: string | null;
|
|
180
|
+
alias2: string | null;
|
|
181
|
+
description: string | null;
|
|
182
|
+
description2: string | null;
|
|
183
|
+
catégorie1: string | null;
|
|
184
|
+
catégorie2: string | null;
|
|
185
|
+
manufacturier: string | null;
|
|
186
|
+
noArticleManufacturier: string | null;
|
|
187
|
+
siteWEBManufacturier: string | null;
|
|
188
|
+
codeUPC: string | null;
|
|
189
|
+
unitéDeMesure: string | null;
|
|
190
|
+
codeGLCoûtVentes: string | null;
|
|
191
|
+
sousCodeGLCoûtVentes1: string | null;
|
|
192
|
+
sousCodeGLCoûtVentes2: string | null;
|
|
193
|
+
codeGLVentes: string | null;
|
|
194
|
+
sousCodeGLVentes1: string | null;
|
|
195
|
+
sousCodeGLVentes2: string | null;
|
|
196
|
+
codeGLStocks: string | null;
|
|
197
|
+
sousCodeGLStocks1: string | null;
|
|
198
|
+
sousCodeGLStocks2: string | null;
|
|
199
|
+
codeGLAchatsDépenses: string | null;
|
|
200
|
+
sousCodeGLAchatsDépenses1: string | null;
|
|
201
|
+
sousCodeGLAchatsDépenses2: string | null;
|
|
202
|
+
codeGLStocksImputés: string | null;
|
|
203
|
+
sousCodeGLStocksImputés1: string | null;
|
|
204
|
+
sousCodeGLStocksImputés2: string | null;
|
|
205
|
+
codeGLAjustementStocks: string | null;
|
|
206
|
+
sousCodeGLAjustementStocks1: string | null;
|
|
207
|
+
sousCodeGLAjustementStocks2: string | null;
|
|
208
|
+
notes: string | null;
|
|
209
|
+
messageInactif: string | null;
|
|
210
|
+
noClassementDouanes: string | null;
|
|
211
|
+
groupePriseInventaire: string | null;
|
|
212
|
+
libre1: string | null;
|
|
213
|
+
libre2: string | null;
|
|
214
|
+
libre3: string | null;
|
|
215
|
+
libre4: string | null;
|
|
216
|
+
libre5: string | null;
|
|
217
|
+
groupeGrandeur: string | null;
|
|
218
|
+
codeTissu: string | null;
|
|
219
|
+
saison: string | null;
|
|
220
|
+
noFournisseur: string | null;
|
|
221
|
+
délaiRéapprovision: number | null;
|
|
222
|
+
typePosting: number | null;
|
|
223
|
+
typeMargeCoûtFixe: number | null;
|
|
224
|
+
typeCréationUPC: number | null;
|
|
225
|
+
fractionnerLotsRéception: number | null;
|
|
226
|
+
entrerCoûtVenteNonStocks: number | null;
|
|
227
|
+
poids: number | null;
|
|
228
|
+
volume: number | null;
|
|
229
|
+
surface: number | null;
|
|
230
|
+
qtéMinimale: number | null;
|
|
231
|
+
qtéSeuilRéapprovision: number | null;
|
|
232
|
+
qtéÉconomique: number | null;
|
|
233
|
+
coûtStandard: number | null;
|
|
234
|
+
margeCoûtFixe: number | null;
|
|
235
|
+
pourcCommission: number | null;
|
|
236
|
+
libreNum1: number | null;
|
|
237
|
+
libreNum2: number | null;
|
|
238
|
+
libreNum3: number | null;
|
|
239
|
+
libreNum4: number | null;
|
|
240
|
+
libreNum5: number | null;
|
|
241
|
+
commerceÉlectronique: boolean;
|
|
242
|
+
taxableTPS: boolean;
|
|
243
|
+
taxableTVQ: boolean;
|
|
244
|
+
stocker: boolean;
|
|
245
|
+
actif: boolean;
|
|
246
|
+
usageAchats: boolean;
|
|
247
|
+
usageVentes: boolean;
|
|
248
|
+
emballage: boolean;
|
|
249
|
+
utiliseCG: boolean;
|
|
250
|
+
saisieNoSérie: boolean;
|
|
251
|
+
dsp: boolean;
|
|
252
|
+
utiliseUPC: boolean;
|
|
253
|
+
};
|
|
254
|
+
image: {
|
|
255
|
+
noArticle: string | null;
|
|
256
|
+
sousCodeArticle1: string | null;
|
|
257
|
+
sousCodeArticle2: string | null;
|
|
258
|
+
imageRéf: string | null;
|
|
259
|
+
image1: string | null;
|
|
260
|
+
image2: string | null;
|
|
261
|
+
image3: string | null;
|
|
262
|
+
image4: string | null;
|
|
263
|
+
image5: string | null;
|
|
264
|
+
};
|
|
265
|
+
classification: {
|
|
266
|
+
noArticle: string | null;
|
|
267
|
+
notesPriseCommandeAchat: string | null;
|
|
268
|
+
notesPriseCommandeVente: string | null;
|
|
269
|
+
crééPar: string | null;
|
|
270
|
+
majPar: string | null;
|
|
271
|
+
noEtat: string | null;
|
|
272
|
+
imageRéfPDVO: string | null;
|
|
273
|
+
fichierATelecharger: string | null;
|
|
274
|
+
fichierATelecharger2: string | null;
|
|
275
|
+
idGroupeMajorationDéfaut: number | null;
|
|
276
|
+
dateCréation: string | null;
|
|
277
|
+
dateMAJ: string | null;
|
|
278
|
+
autorisationRequise: boolean;
|
|
279
|
+
msgQtéStocksPDVO: boolean;
|
|
280
|
+
prixJournalier: boolean;
|
|
281
|
+
};
|
|
282
|
+
messages: {
|
|
283
|
+
noArticle: string | null;
|
|
284
|
+
codeMessage: string | null;
|
|
285
|
+
}[] | null;
|
|
286
|
+
mLs: {
|
|
287
|
+
noArticle: string | null;
|
|
288
|
+
codeLangue: number;
|
|
289
|
+
description: string | null;
|
|
290
|
+
notes: string | null;
|
|
291
|
+
ficheTechnique: string | null;
|
|
292
|
+
fichierATelecharger: string | null;
|
|
293
|
+
fichierATelechargerDescription: string | null;
|
|
294
|
+
}[] | null;
|
|
295
|
+
prix: {
|
|
296
|
+
noArticle: string;
|
|
297
|
+
classePrix: number;
|
|
298
|
+
majPar: string;
|
|
299
|
+
prix: number;
|
|
300
|
+
dateDernièreMAJ: string;
|
|
301
|
+
}[];
|
|
302
|
+
prixQuantites: {
|
|
303
|
+
id: number;
|
|
304
|
+
noArticle: string | null;
|
|
305
|
+
classePrix: number | null;
|
|
306
|
+
quantité: number;
|
|
307
|
+
prix: number;
|
|
308
|
+
}[];
|
|
309
|
+
}
|
|
156
310
|
export interface IG2CustomerSoumission {
|
|
157
311
|
readonly noSoumission: string | null;
|
|
158
312
|
readonly soumission: {
|
|
@@ -254,41 +408,149 @@ export declare enum G2EscompteClientTypeEnum {
|
|
|
254
408
|
GROUPECLIENT_CAT1_ARTICLE = 7,
|
|
255
409
|
GROUPECLIENT_CAT2_ARTICLE = 8
|
|
256
410
|
}
|
|
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;
|
|
411
|
+
export interface IG2Representant {
|
|
412
|
+
noRepresentant: string | null;
|
|
413
|
+
nom: string | null;
|
|
414
|
+
courriel: string | null;
|
|
415
|
+
pourcCommission: number | null;
|
|
271
416
|
}
|
|
272
|
-
export
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
417
|
+
export interface IG2ProvinceTaxation {
|
|
418
|
+
provinceTaxation: {
|
|
419
|
+
noProvince: string | null;
|
|
420
|
+
description: string | null;
|
|
421
|
+
codeGLTPS: string | null;
|
|
422
|
+
sousCodeGLTPS1: string | null;
|
|
423
|
+
sousCodeGLTPS2: string | null;
|
|
424
|
+
codeGLTVP: string | null;
|
|
425
|
+
sousCodeGLTVP1: string | null;
|
|
426
|
+
sousCodeGLTVP2: string | null;
|
|
427
|
+
tpsDescription: string | null;
|
|
428
|
+
tpsDescription2: string | null;
|
|
429
|
+
tvpDescription: string | null;
|
|
430
|
+
tvpDescription2: string | null;
|
|
431
|
+
tauxTPS: number | null;
|
|
432
|
+
tauxTVP: number | null;
|
|
433
|
+
pourcentageDépense: number | null;
|
|
434
|
+
calculerTVPsurTPS: boolean;
|
|
435
|
+
};
|
|
277
436
|
}
|
|
278
|
-
export
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
437
|
+
export interface IG2Order {
|
|
438
|
+
noClient: string;
|
|
439
|
+
noProvinceTaxation: string;
|
|
440
|
+
condition: string;
|
|
441
|
+
noRepresentant: string;
|
|
442
|
+
noDivision?: string | null;
|
|
443
|
+
vendua?: string | null;
|
|
444
|
+
noMagasin?: string | null;
|
|
445
|
+
livreaNom?: string | null;
|
|
446
|
+
livreaDepartement?: string | null;
|
|
447
|
+
livreaAdresse?: string | null;
|
|
448
|
+
livreaVille?: string | null;
|
|
449
|
+
livreaProvince?: string | null;
|
|
450
|
+
livreaPays?: string | null;
|
|
451
|
+
livreaCodePostal?: string | null;
|
|
452
|
+
livreaTelephone?: string | null;
|
|
453
|
+
commandePar?: string | null;
|
|
454
|
+
noCommDuClient?: string | null;
|
|
455
|
+
transport?: string | null;
|
|
456
|
+
noEntreprise?: string | null;
|
|
457
|
+
noTVQ?: string | null;
|
|
458
|
+
deviseEtrangere?: string | null;
|
|
459
|
+
codeGLComptesClients?: string | null;
|
|
460
|
+
sousCodeGLComptesClients1?: string | null;
|
|
461
|
+
sousCodeGLComptesClients2?: string | null;
|
|
462
|
+
notes?: string | null;
|
|
463
|
+
description?: string | null;
|
|
464
|
+
noEntrepot?: string | null;
|
|
465
|
+
noProjet?: string | null;
|
|
466
|
+
noProjetSousCode1?: string | null;
|
|
467
|
+
noProjetSousCode2?: string | null;
|
|
468
|
+
libre1?: string | null;
|
|
469
|
+
libre2?: string | null;
|
|
470
|
+
libre3?: string | null;
|
|
471
|
+
noPropositionDePrix?: string | null;
|
|
472
|
+
creePar?: string | null;
|
|
473
|
+
approuveePar?: string | null;
|
|
474
|
+
noFactureAssocie?: string | null;
|
|
475
|
+
joursEcheance: number | null;
|
|
476
|
+
joursReglementAnticipe: number | null;
|
|
477
|
+
langue?: number | null;
|
|
478
|
+
commandeSuspendue?: number | null;
|
|
479
|
+
pourcEscReglementAnticipe: number | null;
|
|
480
|
+
libreNum1?: number | null;
|
|
481
|
+
libreNum2?: number | null;
|
|
482
|
+
libreNum3?: number | null;
|
|
483
|
+
fraisLivraisons: number;
|
|
484
|
+
date?: Date | null;
|
|
485
|
+
dateRequis?: Date | null;
|
|
486
|
+
dateCréation?: Date | null;
|
|
487
|
+
dateMiseAjour?: Date | null;
|
|
488
|
+
dateAnnulation?: Date | null;
|
|
489
|
+
dateApprobation?: Date | null;
|
|
490
|
+
noteDeCredit?: boolean | null;
|
|
491
|
+
exemptTPS?: boolean | null;
|
|
492
|
+
exemptTVQ?: boolean | null;
|
|
493
|
+
calculerTVPsurTPS?: boolean | null;
|
|
494
|
+
echeanceDeFinMois?: boolean | null;
|
|
495
|
+
reglementAnticipeDeFinMois?: boolean | null;
|
|
496
|
+
calculeEscompteAvantTaxes?: boolean | null;
|
|
497
|
+
fraisLivraisonsTaxableTPS?: boolean | null;
|
|
498
|
+
fraisLivraisonsTaxableTVQ?: boolean | null;
|
|
499
|
+
imprime?: boolean | null;
|
|
500
|
+
commandeLivree?: boolean | null;
|
|
501
|
+
masquerPrixDetaillesFacture?: boolean | null;
|
|
502
|
+
details: IG2OrderItem[];
|
|
286
503
|
}
|
|
287
|
-
export interface
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
504
|
+
export interface IG2OrderItem {
|
|
505
|
+
noArticle: string;
|
|
506
|
+
ordreDeTri: number;
|
|
507
|
+
groupeArticleEquivalent: number;
|
|
508
|
+
description?: string | null;
|
|
509
|
+
message?: string | null;
|
|
510
|
+
noProjet?: string | null;
|
|
511
|
+
noProjetSousCode1?: string | null;
|
|
512
|
+
noProjetSousCode2?: string | null;
|
|
513
|
+
libre1?: string | null;
|
|
514
|
+
libre2?: string | null;
|
|
515
|
+
libre3?: string | null;
|
|
516
|
+
sku?: string | null;
|
|
517
|
+
noBonProduction?: string | null;
|
|
518
|
+
noRequisition?: string | null;
|
|
519
|
+
codeAnnulationBO?: string | null;
|
|
520
|
+
noCommis?: string | null;
|
|
521
|
+
codeGLCoutdeVentes?: string | null;
|
|
522
|
+
sousCodeGLCoutdeVentes1?: string | null;
|
|
523
|
+
sousCodeGLCoutdeVentes2?: string | null;
|
|
524
|
+
noFournisseurCoutdeVentes?: string | null;
|
|
525
|
+
notesCoutdeVentes?: string | null;
|
|
526
|
+
codeGLAchatsDepenses?: string | null;
|
|
527
|
+
sousCodeGLAchatsDepenses1?: string | null;
|
|
528
|
+
sousCodeGLAchatsDepenses2?: string | null;
|
|
529
|
+
referenceArticleEquivalent: number;
|
|
530
|
+
noReferencePDVO?: number | null;
|
|
531
|
+
noReferenceNoSequencePDVO?: number | null;
|
|
532
|
+
quantite?: number | null;
|
|
533
|
+
prixUnitaire?: number | null;
|
|
534
|
+
pourcCommission: number;
|
|
535
|
+
pourcEscompte?: number;
|
|
536
|
+
poidsUnitaire?: number | null;
|
|
537
|
+
libreNum1: number;
|
|
538
|
+
libreNum2: number;
|
|
539
|
+
libreNum3: number;
|
|
540
|
+
prixDetailSuggere: number;
|
|
541
|
+
prixMinimum: number;
|
|
542
|
+
montantCommission: number;
|
|
543
|
+
coutdeVenteUnitaire: number;
|
|
544
|
+
dateAnnulationBO?: Date | null;
|
|
545
|
+
taxableTPS?: boolean | null;
|
|
546
|
+
taxableTVQ?: boolean | null;
|
|
547
|
+
boAnnule?: boolean | null;
|
|
548
|
+
prixModifieUtilisateur?: boolean | null;
|
|
549
|
+
escompteModifieUtilisateur?: boolean | null;
|
|
550
|
+
articleKit?: boolean | null;
|
|
551
|
+
dsp?: boolean | null;
|
|
291
552
|
}
|
|
292
|
-
export
|
|
293
|
-
|
|
553
|
+
export declare enum G2OrderSaveErrors {
|
|
554
|
+
G2_ERROR = "g2_error",
|
|
555
|
+
ADDIO_SAVE_CART_ERROR = "addio_save_cart_error"
|
|
294
556
|
}
|
|
@@ -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;AA8XD,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"}
|
|
@@ -8,4 +8,6 @@ export default interface IPayment {
|
|
|
8
8
|
readonly paid_by?: firestore.DocumentReference<ICustomer> | string;
|
|
9
9
|
readonly user_email?: string;
|
|
10
10
|
readonly associated_carts?: firestore.DocumentReference<ICart>[] | string[];
|
|
11
|
+
readonly is_deposit?: boolean;
|
|
12
|
+
readonly ref?: string;
|
|
11
13
|
}
|
|
@@ -190,6 +190,15 @@ export interface IPredefinedBox {
|
|
|
190
190
|
readonly price?: number;
|
|
191
191
|
readonly category_id?: string;
|
|
192
192
|
readonly attribute?: string;
|
|
193
|
+
readonly is_shipping_option?: boolean;
|
|
194
|
+
readonly shipping_option_data?: {
|
|
195
|
+
readonly carrier?: string;
|
|
196
|
+
readonly service_name?: string;
|
|
197
|
+
readonly order_min_price?: number;
|
|
198
|
+
readonly max_weight?: number;
|
|
199
|
+
readonly max_item_in_box?: number;
|
|
200
|
+
readonly quote_id?: string;
|
|
201
|
+
} | null;
|
|
193
202
|
}
|
|
194
203
|
export interface IDimensionUnit {
|
|
195
204
|
readonly slug: string;
|
|
@@ -359,3 +368,10 @@ export interface IFixedPromoBanner {
|
|
|
359
368
|
end: Date;
|
|
360
369
|
}[];
|
|
361
370
|
}
|
|
371
|
+
export interface IShippingServiceZone {
|
|
372
|
+
description: string;
|
|
373
|
+
polygon: string;
|
|
374
|
+
base_fee: number;
|
|
375
|
+
slug: string;
|
|
376
|
+
name: string;
|
|
377
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Interfaces/Space/index.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Interfaces/Space/index.ts"],"names":[],"mappings":";;;AAiOA,IAAY,uBAaX;AAbD,WAAY,uBAAuB;IAClC,gDAAqB,CAAA;IACrB,8CAAmB,CAAA;IACnB,8CAAmB,CAAA;IACnB,8CAAmB,CAAA;IACnB,0CAAe,CAAA;IACf,8CAAmB,CAAA;IACnB,8CAAmB,CAAA;IACnB,8CAAmB,CAAA;IACnB,iDAAsB,CAAA;IACtB,8CAAmB,CAAA;IACnB,kDAAuB,CAAA;IACvB,4CAAiB,CAAA;AAClB,CAAC,EAbW,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAalC;AA2DD,IAAY,oBAyBX;AAzBD,WAAY,oBAAoB;IAC/B,mDAA2B,CAAA;IAC3B,0DAAkC,CAAA;IAClC,iDAAyB,CAAA;IACzB,+CAAuB,CAAA;IACvB,uCAAe,CAAA;IACf,yCAAiB,CAAA;IACjB,6CAAqB,CAAA;IACrB,+CAAuB,CAAA;IACvB,mDAA2B,CAAA;IAC3B,6CAAqB,CAAA;IACrB,qCAAa,CAAA;IACb,6CAAqB,CAAA;IACrB,yDAAiC,CAAA;IACjC,2CAAmB,CAAA;IACnB,2CAAm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