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.
@@ -0,0 +1,7 @@
1
+ {
2
+ "permissions": {
3
+ "allow": [
4
+ "Bash(yarn tsc:*)"
5
+ ]
6
+ }
7
+ }
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
- NEXT_PUBLIC_API_URL=https://api-test.addiocommerce.com/v1
14
- NEXT_PUBLIC_SERVICE_DATABASE_TOKEN='337043a374-6f0be-5eb26-05be550631'
15
- LOCAL_FIRESTORE=false
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
@@ -1,4 +1,4 @@
1
1
  export default interface IContextProps {
2
- readonly children: JSX.Element | JSX.Element[];
2
+ readonly children: Element | Element[];
3
3
  readonly firebase_config: any;
4
4
  }
@@ -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"}