addio-admin-sdk 1.7.120 → 1.7.121-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.
- package/.claude/settings.local.json +7 -0
- package/.env +5 -6
- package/changelog.md +9 -0
- package/dist/Interfaces/Context/IContextProps.d.ts +1 -1
- package/dist/Interfaces/Payment/index.d.ts +13 -0
- package/dist/Interfaces/Payment/index.js +12 -0
- package/dist/Interfaces/Payment/index.js.map +1 -1
- package/dist/lib/Cart/index.js.map +1 -1
- package/dist/lib/Customer/index.d.ts +7 -0
- package/dist/lib/Customer/index.js +11 -0
- package/dist/lib/Customer/index.js.map +1 -1
- package/dist/lib/Space/index.d.ts +2 -2
- package/dist/lib/Space/index.js +5 -8
- package/dist/lib/Space/index.js.map +1 -1
- package/dist/rules/GR/constants/expedition.d.ts +4 -0
- package/dist/rules/GR/constants/expedition.js +10 -0
- package/dist/rules/GR/constants/expedition.js.map +1 -0
- package/dist/rules/GR/interfaces/data.d.ts +2 -1
- package/dist/rules/GR/interfaces/data.js +1 -0
- package/dist/rules/GR/interfaces/data.js.map +1 -1
- package/dist/rules/GR/utils/products.d.ts +1 -1
- package/dist/rules/GR/utils/products.js +19 -1
- package/dist/rules/GR/utils/products.js.map +1 -1
- package/dist/services/g2/utils.js +64 -0
- package/dist/services/g2/utils.js.map +1 -1
- package/package.json +1 -1
- package/dist/lib/Queue/index.d.ts +0 -40
- package/dist/lib/Queue/index.js +0 -255
- package/dist/lib/Queue/index.js.map +0 -1
package/.env
CHANGED
|
@@ -2,14 +2,13 @@ NEXT_PUBLIC_FIREBASE_CONFIG_API_KEY_DEV='AIzaSyBNtwzdIe2__HJD23S87RIbWbIqKQVtFiw
|
|
|
2
2
|
NEXT_PUBLIC_FIREBASE_CONFIG_API_KEY_PROD='AIzaSyDK6WQZkCrsMGunAPHn9KkdCGPky4hTgL4'
|
|
3
3
|
NEXT_PUBLIC_MESSAGING_SENDER_ID_DEV='188490998694'
|
|
4
4
|
NEXT_PUBLIC_MESSAGING_SENDER_ID_PROD='725873016982'
|
|
5
|
-
NEXT_PUBLIC_FIREBASE_APP_ID_PROD='1:725873016982:web:9b1f6d77819909e19102b7'
|
|
6
5
|
NEXT_PUBLIC_FIREBASE_APP_ID_DEV='1:188490998694:web:eecd719e7b18f38d272567'
|
|
6
|
+
NEXT_PUBLIC_FIREBASE_APP_ID_PROD='1:725873016982:web:9b1f6d77819909e19102b7'
|
|
7
7
|
NEXT_PUBLIC_MEASUREMENT_ID_DEV='G-4BB66ZRTWZ'
|
|
8
8
|
NEXT_PUBLIC_MEASUREMENT_ID_PROD='G-BB8HHZ466R'
|
|
9
|
-
|
|
10
9
|
NEXT_PUBLIC_SERVICE_DATABASE_READ_PROVIDER=nobase
|
|
11
|
-
NEXT_PUBLIC_SERVICE_DATABASE_WRITE_PROVIDER=nobase
|
|
10
|
+
NEXT_PUBLIC_SERVICE_DATABASE_WRITE_PROVIDER=nobase,firebase
|
|
12
11
|
NEXT_PUBLIC_SERVICE_DATABASE_URL=https://db-test.addiocommerce.com/
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
NEXT_PUBLIC_SERVICE_DATABASE_TOKEN=$SERVICE_DATABASE_TOKEN
|
|
13
|
+
# NEXT_PUBLIC_API_URL=https://api-test.addiocommerce.com/v1
|
|
14
|
+
NEXT_PUBLIC_API_URL=http://localhost:8080
|
package/changelog.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## [10-04-2026]
|
|
2
|
+
|
|
3
|
+
### 155 - 2 sku gazon (pickup et livraison)
|
|
4
|
+
|
|
5
|
+
- **Added**
|
|
6
|
+
- **Changed**
|
|
7
|
+
- Updated `InventoryStock` component, so that we can always mark a product as infinite stock even if it has multiple variants.
|
|
8
|
+
- **Fixed**
|
|
9
|
+
|
|
1
10
|
## [08-12-2025]
|
|
2
11
|
|
|
3
12
|
### Expedition - Added winter period for sample carts delivery date
|
|
@@ -11,3 +11,16 @@ export default interface IPayment {
|
|
|
11
11
|
readonly is_deposit?: boolean;
|
|
12
12
|
readonly ref?: string;
|
|
13
13
|
}
|
|
14
|
+
/**
|
|
15
|
+
* Generates and returns a Payment object with props provided.
|
|
16
|
+
* @param method The PaymentTypeEnum for specific payment method.
|
|
17
|
+
* @param amount The money amount to associate to payement. Can be a negative value or 0, but must be provided.
|
|
18
|
+
* @param options.reference Optionnal. The reference or comment string for payement.
|
|
19
|
+
* @param options.userEmail Optionnal. The email of the Addio user that took the payment.
|
|
20
|
+
* @param options.paidAtDate Optionnal. If not provided, sets "today" date.
|
|
21
|
+
*/
|
|
22
|
+
export declare const generatePaymentObj: (method: PaymentTypeEnum, amount: number, options?: {
|
|
23
|
+
reference?: string | undefined;
|
|
24
|
+
userEmail?: string | undefined;
|
|
25
|
+
paidAtDate?: Date | undefined;
|
|
26
|
+
}) => IPayment;
|
|
@@ -1,3 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.generatePaymentObj = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Generates and returns a Payment object with props provided.
|
|
6
|
+
* @param method The PaymentTypeEnum for specific payment method.
|
|
7
|
+
* @param amount The money amount to associate to payement. Can be a negative value or 0, but must be provided.
|
|
8
|
+
* @param options.reference Optionnal. The reference or comment string for payement.
|
|
9
|
+
* @param options.userEmail Optionnal. The email of the Addio user that took the payment.
|
|
10
|
+
* @param options.paidAtDate Optionnal. If not provided, sets "today" date.
|
|
11
|
+
*/
|
|
12
|
+
const generatePaymentObj = (method, amount, options = {}) => (Object.assign(Object.assign({ amount,
|
|
13
|
+
method, paid_at: options.paidAtDate || new Date() }, (options.userEmail ? { user_email: options.userEmail } : {})), (options.reference ? { ref: options.reference } : {})));
|
|
14
|
+
exports.generatePaymentObj = generatePaymentObj;
|
|
3
15
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Interfaces/Payment/index.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Interfaces/Payment/index.ts"],"names":[],"mappings":";;;AAiBA;;;;;;;GAOG;AACI,MAAM,kBAAkB,GAAG,CACjC,MAAuB,EACvB,MAAc,EACd,UAA6G,EAAE,EACpG,EAAE,CAAC,+BACd,MAAM;IACN,MAAM,EACN,OAAO,EAAE,OAAO,CAAC,UAAU,IAAI,IAAI,IAAI,EAAE,IACtC,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,OAAO,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,GAC5D,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,OAAO,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EACvD,CAAA;AAVW,QAAA,kBAAkB,sBAU7B"}
|