ce-storefront 0.0.4 → 0.0.5

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.
Files changed (88) hide show
  1. package/README.md +6 -0
  2. package/docs/sdks/customersapi/README.md +234 -0
  3. package/funcs/customersAPIGetCustomersId.d.ts +15 -0
  4. package/funcs/customersAPIGetCustomersId.d.ts.map +1 -0
  5. package/funcs/customersAPIGetCustomersId.js +93 -0
  6. package/funcs/customersAPIGetCustomersId.js.map +1 -0
  7. package/funcs/customersAPIPostCustomers.d.ts +17 -0
  8. package/funcs/customersAPIPostCustomers.d.ts.map +1 -0
  9. package/funcs/customersAPIPostCustomers.js +96 -0
  10. package/funcs/customersAPIPostCustomers.js.map +1 -0
  11. package/funcs/customersAPIPutCustomersId.d.ts +16 -0
  12. package/funcs/customersAPIPutCustomersId.d.ts.map +1 -0
  13. package/funcs/customersAPIPutCustomersId.js +98 -0
  14. package/funcs/customersAPIPutCustomersId.js.map +1 -0
  15. package/lib/config.d.ts +2 -2
  16. package/lib/config.js +2 -2
  17. package/models/components/business.d.ts +31 -0
  18. package/models/components/business.d.ts.map +1 -0
  19. package/models/components/business.js +71 -0
  20. package/models/components/business.js.map +1 -0
  21. package/models/components/cart.d.ts +1 -1
  22. package/models/components/cart.d.ts.map +1 -1
  23. package/models/components/cart.js +5 -5
  24. package/models/components/cart.js.map +1 -1
  25. package/models/components/createcustomer.d.ts +29 -0
  26. package/models/components/createcustomer.d.ts.map +1 -0
  27. package/models/components/createcustomer.js +54 -0
  28. package/models/components/createcustomer.js.map +1 -0
  29. package/models/components/{customeraddress.d.ts → customeraddressinput.d.ts} +29 -29
  30. package/models/components/customeraddressinput.d.ts.map +1 -0
  31. package/models/components/{customeraddress.js → customeraddressinput.js} +30 -30
  32. package/models/components/customeraddressinput.js.map +1 -0
  33. package/models/components/customerdetail.d.ts +51 -0
  34. package/models/components/customerdetail.d.ts.map +1 -0
  35. package/models/components/customerdetail.js +88 -0
  36. package/models/components/customerdetail.js.map +1 -0
  37. package/models/components/index.d.ts +5 -1
  38. package/models/components/index.d.ts.map +1 -1
  39. package/models/components/index.js +5 -1
  40. package/models/components/index.js.map +1 -1
  41. package/models/components/orderdetail.d.ts +1 -1
  42. package/models/components/orderdetail.d.ts.map +1 -1
  43. package/models/components/orderdetail.js +5 -5
  44. package/models/components/orderdetail.js.map +1 -1
  45. package/models/components/updatecustomer.d.ts +26 -0
  46. package/models/components/updatecustomer.d.ts.map +1 -0
  47. package/models/components/updatecustomer.js +51 -0
  48. package/models/components/updatecustomer.js.map +1 -0
  49. package/models/operations/getcustomersid.d.ts +82 -0
  50. package/models/operations/getcustomersid.d.ts.map +1 -0
  51. package/models/operations/getcustomersid.js +106 -0
  52. package/models/operations/getcustomersid.js.map +1 -0
  53. package/models/operations/index.d.ts +3 -0
  54. package/models/operations/index.d.ts.map +1 -1
  55. package/models/operations/index.js +3 -0
  56. package/models/operations/index.js.map +1 -1
  57. package/models/operations/postcustomers.d.ts +56 -0
  58. package/models/operations/postcustomers.d.ts.map +1 -0
  59. package/models/operations/postcustomers.js +87 -0
  60. package/models/operations/postcustomers.js.map +1 -0
  61. package/models/operations/putcustomersid.d.ts +84 -0
  62. package/models/operations/putcustomersid.d.ts.map +1 -0
  63. package/models/operations/putcustomersid.js +120 -0
  64. package/models/operations/putcustomersid.js.map +1 -0
  65. package/package.json +1 -1
  66. package/sdk/customersapi.d.ts +22 -0
  67. package/sdk/customersapi.d.ts.map +1 -1
  68. package/sdk/customersapi.js +30 -0
  69. package/sdk/customersapi.js.map +1 -1
  70. package/src/funcs/customersAPIGetCustomersId.ts +124 -0
  71. package/src/funcs/customersAPIPostCustomers.ts +133 -0
  72. package/src/funcs/customersAPIPutCustomersId.ts +136 -0
  73. package/src/lib/config.ts +2 -2
  74. package/src/models/components/business.ts +64 -0
  75. package/src/models/components/cart.ts +1 -1
  76. package/src/models/components/createcustomer.ts +58 -0
  77. package/src/models/components/customerdetail.ts +109 -0
  78. package/src/models/components/index.ts +5 -1
  79. package/src/models/components/orderdetail.ts +1 -1
  80. package/src/models/components/updatecustomer.ts +48 -0
  81. package/src/models/operations/getcustomersid.ts +153 -0
  82. package/src/models/operations/index.ts +3 -0
  83. package/src/models/operations/postcustomers.ts +110 -0
  84. package/src/models/operations/putcustomersid.ts +169 -0
  85. package/src/sdk/customersapi.ts +43 -0
  86. package/models/components/customeraddress.d.ts.map +0 -1
  87. package/models/components/customeraddress.js.map +0 -1
  88. package/src/models/components/{customeraddress.ts → customeraddressinput.ts} +46 -46
@@ -11,8 +11,7 @@ export const CustomerAddressCountry = {
11
11
  } as const;
12
12
  export type CustomerAddressCountry = ClosedEnum<typeof CustomerAddressCountry>;
13
13
 
14
- export type CustomerAddress = {
15
- id?: string | undefined;
14
+ export type CustomerAddressInput = {
16
15
  firstName: string;
17
16
  lastName?: string | undefined;
18
17
  /**
@@ -42,11 +41,10 @@ export type CustomerAddress = {
42
41
  * Use in shipping details only.
43
42
  */
44
43
  businessName?: string | null | undefined;
45
- isPhoneVerified?: boolean | undefined;
46
- isEmailVerified?: boolean | undefined;
47
44
  };
48
45
 
49
- export type CustomerAddressInput = {
46
+ export type CustomerAddress = {
47
+ id?: string | undefined;
50
48
  firstName: string;
51
49
  lastName?: string | undefined;
52
50
  /**
@@ -76,6 +74,8 @@ export type CustomerAddressInput = {
76
74
  * Use in shipping details only.
77
75
  */
78
76
  businessName?: string | null | undefined;
77
+ isPhoneVerified?: boolean | undefined;
78
+ isEmailVerified?: boolean | undefined;
79
79
  };
80
80
 
81
81
  /** @internal */
@@ -98,9 +98,12 @@ export namespace CustomerAddressCountry$ {
98
98
  }
99
99
 
100
100
  /** @internal */
101
- export const CustomerAddress$inboundSchema: z.ZodType<CustomerAddress, z.ZodTypeDef, unknown> = z
101
+ export const CustomerAddressInput$inboundSchema: z.ZodType<
102
+ CustomerAddressInput,
103
+ z.ZodTypeDef,
104
+ unknown
105
+ > = z
102
106
  .object({
103
- id: z.string().optional(),
104
107
  first_name: z.string(),
105
108
  last_name: z.string().optional(),
106
109
  country_code: z.string().optional(),
@@ -115,8 +118,6 @@ export const CustomerAddress$inboundSchema: z.ZodType<CustomerAddress, z.ZodType
115
118
  country: CustomerAddressCountry$inboundSchema,
116
119
  gstin: z.nullable(z.string()).optional(),
117
120
  business_name: z.nullable(z.string()).optional(),
118
- is_phone_verified: z.boolean().optional(),
119
- is_email_verified: z.boolean().optional(),
120
121
  })
121
122
  .transform((v) => {
122
123
  return remap$(v, {
@@ -126,14 +127,11 @@ export const CustomerAddress$inboundSchema: z.ZodType<CustomerAddress, z.ZodType
126
127
  address_line1: "addressLine1",
127
128
  address_line2: "addressLine2",
128
129
  business_name: "businessName",
129
- is_phone_verified: "isPhoneVerified",
130
- is_email_verified: "isEmailVerified",
131
130
  });
132
131
  });
133
132
 
134
133
  /** @internal */
135
- export type CustomerAddress$Outbound = {
136
- id?: string | undefined;
134
+ export type CustomerAddressInput$Outbound = {
137
135
  first_name: string;
138
136
  last_name?: string | undefined;
139
137
  country_code?: string | undefined;
@@ -148,18 +146,15 @@ export type CustomerAddress$Outbound = {
148
146
  country: string;
149
147
  gstin?: string | null | undefined;
150
148
  business_name?: string | null | undefined;
151
- is_phone_verified?: boolean | undefined;
152
- is_email_verified?: boolean | undefined;
153
149
  };
154
150
 
155
151
  /** @internal */
156
- export const CustomerAddress$outboundSchema: z.ZodType<
157
- CustomerAddress$Outbound,
152
+ export const CustomerAddressInput$outboundSchema: z.ZodType<
153
+ CustomerAddressInput$Outbound,
158
154
  z.ZodTypeDef,
159
- CustomerAddress
155
+ CustomerAddressInput
160
156
  > = z
161
157
  .object({
162
- id: z.string().optional(),
163
158
  firstName: z.string(),
164
159
  lastName: z.string().optional(),
165
160
  countryCode: z.string().optional(),
@@ -174,8 +169,6 @@ export const CustomerAddress$outboundSchema: z.ZodType<
174
169
  country: CustomerAddressCountry$outboundSchema,
175
170
  gstin: z.nullable(z.string()).optional(),
176
171
  businessName: z.nullable(z.string()).optional(),
177
- isPhoneVerified: z.boolean().optional(),
178
- isEmailVerified: z.boolean().optional(),
179
172
  })
180
173
  .transform((v) => {
181
174
  return remap$(v, {
@@ -185,8 +178,6 @@ export const CustomerAddress$outboundSchema: z.ZodType<
185
178
  addressLine1: "address_line1",
186
179
  addressLine2: "address_line2",
187
180
  businessName: "business_name",
188
- isPhoneVerified: "is_phone_verified",
189
- isEmailVerified: "is_email_verified",
190
181
  });
191
182
  });
192
183
 
@@ -194,22 +185,19 @@ export const CustomerAddress$outboundSchema: z.ZodType<
194
185
  * @internal
195
186
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
196
187
  */
197
- export namespace CustomerAddress$ {
198
- /** @deprecated use `CustomerAddress$inboundSchema` instead. */
199
- export const inboundSchema = CustomerAddress$inboundSchema;
200
- /** @deprecated use `CustomerAddress$outboundSchema` instead. */
201
- export const outboundSchema = CustomerAddress$outboundSchema;
202
- /** @deprecated use `CustomerAddress$Outbound` instead. */
203
- export type Outbound = CustomerAddress$Outbound;
188
+ export namespace CustomerAddressInput$ {
189
+ /** @deprecated use `CustomerAddressInput$inboundSchema` instead. */
190
+ export const inboundSchema = CustomerAddressInput$inboundSchema;
191
+ /** @deprecated use `CustomerAddressInput$outboundSchema` instead. */
192
+ export const outboundSchema = CustomerAddressInput$outboundSchema;
193
+ /** @deprecated use `CustomerAddressInput$Outbound` instead. */
194
+ export type Outbound = CustomerAddressInput$Outbound;
204
195
  }
205
196
 
206
197
  /** @internal */
207
- export const CustomerAddressInput$inboundSchema: z.ZodType<
208
- CustomerAddressInput,
209
- z.ZodTypeDef,
210
- unknown
211
- > = z
198
+ export const CustomerAddress$inboundSchema: z.ZodType<CustomerAddress, z.ZodTypeDef, unknown> = z
212
199
  .object({
200
+ id: z.string().optional(),
213
201
  first_name: z.string(),
214
202
  last_name: z.string().optional(),
215
203
  country_code: z.string().optional(),
@@ -224,6 +212,8 @@ export const CustomerAddressInput$inboundSchema: z.ZodType<
224
212
  country: CustomerAddressCountry$inboundSchema,
225
213
  gstin: z.nullable(z.string()).optional(),
226
214
  business_name: z.nullable(z.string()).optional(),
215
+ is_phone_verified: z.boolean().optional(),
216
+ is_email_verified: z.boolean().optional(),
227
217
  })
228
218
  .transform((v) => {
229
219
  return remap$(v, {
@@ -233,11 +223,14 @@ export const CustomerAddressInput$inboundSchema: z.ZodType<
233
223
  address_line1: "addressLine1",
234
224
  address_line2: "addressLine2",
235
225
  business_name: "businessName",
226
+ is_phone_verified: "isPhoneVerified",
227
+ is_email_verified: "isEmailVerified",
236
228
  });
237
229
  });
238
230
 
239
231
  /** @internal */
240
- export type CustomerAddressInput$Outbound = {
232
+ export type CustomerAddress$Outbound = {
233
+ id?: string | undefined;
241
234
  first_name: string;
242
235
  last_name?: string | undefined;
243
236
  country_code?: string | undefined;
@@ -252,15 +245,18 @@ export type CustomerAddressInput$Outbound = {
252
245
  country: string;
253
246
  gstin?: string | null | undefined;
254
247
  business_name?: string | null | undefined;
248
+ is_phone_verified?: boolean | undefined;
249
+ is_email_verified?: boolean | undefined;
255
250
  };
256
251
 
257
252
  /** @internal */
258
- export const CustomerAddressInput$outboundSchema: z.ZodType<
259
- CustomerAddressInput$Outbound,
253
+ export const CustomerAddress$outboundSchema: z.ZodType<
254
+ CustomerAddress$Outbound,
260
255
  z.ZodTypeDef,
261
- CustomerAddressInput
256
+ CustomerAddress
262
257
  > = z
263
258
  .object({
259
+ id: z.string().optional(),
264
260
  firstName: z.string(),
265
261
  lastName: z.string().optional(),
266
262
  countryCode: z.string().optional(),
@@ -275,6 +271,8 @@ export const CustomerAddressInput$outboundSchema: z.ZodType<
275
271
  country: CustomerAddressCountry$outboundSchema,
276
272
  gstin: z.nullable(z.string()).optional(),
277
273
  businessName: z.nullable(z.string()).optional(),
274
+ isPhoneVerified: z.boolean().optional(),
275
+ isEmailVerified: z.boolean().optional(),
278
276
  })
279
277
  .transform((v) => {
280
278
  return remap$(v, {
@@ -284,6 +282,8 @@ export const CustomerAddressInput$outboundSchema: z.ZodType<
284
282
  addressLine1: "address_line1",
285
283
  addressLine2: "address_line2",
286
284
  businessName: "business_name",
285
+ isPhoneVerified: "is_phone_verified",
286
+ isEmailVerified: "is_email_verified",
287
287
  });
288
288
  });
289
289
 
@@ -291,11 +291,11 @@ export const CustomerAddressInput$outboundSchema: z.ZodType<
291
291
  * @internal
292
292
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
293
293
  */
294
- export namespace CustomerAddressInput$ {
295
- /** @deprecated use `CustomerAddressInput$inboundSchema` instead. */
296
- export const inboundSchema = CustomerAddressInput$inboundSchema;
297
- /** @deprecated use `CustomerAddressInput$outboundSchema` instead. */
298
- export const outboundSchema = CustomerAddressInput$outboundSchema;
299
- /** @deprecated use `CustomerAddressInput$Outbound` instead. */
300
- export type Outbound = CustomerAddressInput$Outbound;
294
+ export namespace CustomerAddress$ {
295
+ /** @deprecated use `CustomerAddress$inboundSchema` instead. */
296
+ export const inboundSchema = CustomerAddress$inboundSchema;
297
+ /** @deprecated use `CustomerAddress$outboundSchema` instead. */
298
+ export const outboundSchema = CustomerAddress$outboundSchema;
299
+ /** @deprecated use `CustomerAddress$Outbound` instead. */
300
+ export type Outbound = CustomerAddress$Outbound;
301
301
  }