order3000 0.1.9 → 0.1.10

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/client.d.cts CHANGED
@@ -30,21 +30,43 @@ interface components {
30
30
  * @description Place a new order for a specific tenant
31
31
  */
32
32
  PlaceOrderRequest: {
33
- /** Format: uuid */
34
33
  id?: string;
34
+ tenantId: string;
35
+ basketId: string;
36
+ /** @enum {string} */
37
+ status?: "DRAFT" | "PENDING" | "PAID" | "FULFILLED" | "CANCELLED" | "REFUNDED";
38
+ paymentIntentId?: string | null;
39
+ /** @enum {string|null} */
40
+ paymentMethod?: "CARD" | "CASH" | "VOUCHER" | null;
41
+ taxAmount: string;
42
+ totalAmount: string;
43
+ currency?: string;
35
44
  /** Format: date-time */
36
- createdAt?: string;
45
+ orderedAt?: string;
46
+ orderedBy: string;
37
47
  /** Format: date-time */
38
- updatedAt?: string;
48
+ updatedAt?: string | null;
49
+ updatedBy?: string | null;
39
50
  };
40
51
  /** PlaceOrderResponse */
41
52
  PlaceOrderResponse: {
42
- /** Format: uuid */
43
53
  id: string;
54
+ tenantId: string;
55
+ basketId: string;
56
+ /** @enum {string} */
57
+ status: "DRAFT" | "PENDING" | "PAID" | "FULFILLED" | "CANCELLED" | "REFUNDED";
58
+ paymentIntentId: string | null;
59
+ /** @enum {string|null} */
60
+ paymentMethod: "CARD" | "CASH" | "VOUCHER" | null;
61
+ taxAmount: string;
62
+ totalAmount: string;
63
+ currency: string;
44
64
  /** Format: date-time */
45
- createdAt: string;
65
+ orderedAt: string;
66
+ orderedBy: string;
46
67
  /** Format: date-time */
47
- updatedAt: string;
68
+ updatedAt: string | null;
69
+ updatedBy: string | null;
48
70
  };
49
71
  };
50
72
  responses: never;
package/dist/client.d.mts CHANGED
@@ -30,21 +30,43 @@ interface components {
30
30
  * @description Place a new order for a specific tenant
31
31
  */
32
32
  PlaceOrderRequest: {
33
- /** Format: uuid */
34
33
  id?: string;
34
+ tenantId: string;
35
+ basketId: string;
36
+ /** @enum {string} */
37
+ status?: "DRAFT" | "PENDING" | "PAID" | "FULFILLED" | "CANCELLED" | "REFUNDED";
38
+ paymentIntentId?: string | null;
39
+ /** @enum {string|null} */
40
+ paymentMethod?: "CARD" | "CASH" | "VOUCHER" | null;
41
+ taxAmount: string;
42
+ totalAmount: string;
43
+ currency?: string;
35
44
  /** Format: date-time */
36
- createdAt?: string;
45
+ orderedAt?: string;
46
+ orderedBy: string;
37
47
  /** Format: date-time */
38
- updatedAt?: string;
48
+ updatedAt?: string | null;
49
+ updatedBy?: string | null;
39
50
  };
40
51
  /** PlaceOrderResponse */
41
52
  PlaceOrderResponse: {
42
- /** Format: uuid */
43
53
  id: string;
54
+ tenantId: string;
55
+ basketId: string;
56
+ /** @enum {string} */
57
+ status: "DRAFT" | "PENDING" | "PAID" | "FULFILLED" | "CANCELLED" | "REFUNDED";
58
+ paymentIntentId: string | null;
59
+ /** @enum {string|null} */
60
+ paymentMethod: "CARD" | "CASH" | "VOUCHER" | null;
61
+ taxAmount: string;
62
+ totalAmount: string;
63
+ currency: string;
44
64
  /** Format: date-time */
45
- createdAt: string;
65
+ orderedAt: string;
66
+ orderedBy: string;
46
67
  /** Format: date-time */
47
- updatedAt: string;
68
+ updatedAt: string | null;
69
+ updatedBy: string | null;
48
70
  };
49
71
  };
50
72
  responses: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "order3000",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "description": "order3000 node.js sdk",
5
5
  "main": "./dist/client.cjs",
6
6
  "module": "./dist/client.mjs",
@@ -16,7 +16,9 @@
16
16
  }
17
17
  },
18
18
  "dependencies": {
19
- "got": "^14.4.6"
19
+ "got": "^14.4.6",
20
+ "i18next": "^25.0.0",
21
+ "i18next-fs-backend": "^2.6.0"
20
22
  },
21
23
  "devDependencies": {
22
24
  "@types/node": "^22.13.9",