@managesome/eposmatic-toolkit 0.2.788 → 0.2.789

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.
@@ -155,6 +155,40 @@ export declare const CustomersSchema: Schema<any, import("mongoose").Model<any,
155
155
  }>;
156
156
  order_ids: import("mongoose").Types.ObjectId[];
157
157
  is_disabled?: boolean | null | undefined;
158
+ other_addresses?: import("mongoose").Types.DocumentArray<{
159
+ city: string;
160
+ address_instructions: string;
161
+ state: string;
162
+ street: string;
163
+ lat: number;
164
+ lng: number;
165
+ zip_code: string;
166
+ country_code: string;
167
+ place_id: string;
168
+ distance_in_meters_from_store: number;
169
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
170
+ city: string;
171
+ address_instructions: string;
172
+ state: string;
173
+ street: string;
174
+ lat: number;
175
+ lng: number;
176
+ zip_code: string;
177
+ country_code: string;
178
+ place_id: string;
179
+ distance_in_meters_from_store: number;
180
+ }> & {
181
+ city: string;
182
+ address_instructions: string;
183
+ state: string;
184
+ street: string;
185
+ lat: number;
186
+ lng: number;
187
+ zip_code: string;
188
+ country_code: string;
189
+ place_id: string;
190
+ distance_in_meters_from_store: number;
191
+ }> | null | undefined;
158
192
  }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
159
193
  createdAt: NativeDate;
160
194
  updatedAt: NativeDate;
@@ -307,6 +341,40 @@ export declare const CustomersSchema: Schema<any, import("mongoose").Model<any,
307
341
  }>;
308
342
  order_ids: import("mongoose").Types.ObjectId[];
309
343
  is_disabled?: boolean | null | undefined;
344
+ other_addresses?: import("mongoose").Types.DocumentArray<{
345
+ city: string;
346
+ address_instructions: string;
347
+ state: string;
348
+ street: string;
349
+ lat: number;
350
+ lng: number;
351
+ zip_code: string;
352
+ country_code: string;
353
+ place_id: string;
354
+ distance_in_meters_from_store: number;
355
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
356
+ city: string;
357
+ address_instructions: string;
358
+ state: string;
359
+ street: string;
360
+ lat: number;
361
+ lng: number;
362
+ zip_code: string;
363
+ country_code: string;
364
+ place_id: string;
365
+ distance_in_meters_from_store: number;
366
+ }> & {
367
+ city: string;
368
+ address_instructions: string;
369
+ state: string;
370
+ street: string;
371
+ lat: number;
372
+ lng: number;
373
+ zip_code: string;
374
+ country_code: string;
375
+ place_id: string;
376
+ distance_in_meters_from_store: number;
377
+ }> | null | undefined;
310
378
  }>> & import("mongoose").FlatRecord<{
311
379
  createdAt: NativeDate;
312
380
  updatedAt: NativeDate;
@@ -459,6 +527,40 @@ export declare const CustomersSchema: Schema<any, import("mongoose").Model<any,
459
527
  }>;
460
528
  order_ids: import("mongoose").Types.ObjectId[];
461
529
  is_disabled?: boolean | null | undefined;
530
+ other_addresses?: import("mongoose").Types.DocumentArray<{
531
+ city: string;
532
+ address_instructions: string;
533
+ state: string;
534
+ street: string;
535
+ lat: number;
536
+ lng: number;
537
+ zip_code: string;
538
+ country_code: string;
539
+ place_id: string;
540
+ distance_in_meters_from_store: number;
541
+ }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
542
+ city: string;
543
+ address_instructions: string;
544
+ state: string;
545
+ street: string;
546
+ lat: number;
547
+ lng: number;
548
+ zip_code: string;
549
+ country_code: string;
550
+ place_id: string;
551
+ distance_in_meters_from_store: number;
552
+ }> & {
553
+ city: string;
554
+ address_instructions: string;
555
+ state: string;
556
+ street: string;
557
+ lat: number;
558
+ lng: number;
559
+ zip_code: string;
560
+ country_code: string;
561
+ place_id: string;
562
+ distance_in_meters_from_store: number;
563
+ }> | null | undefined;
462
564
  }> & Required<{
463
565
  _id: import("mongoose").Types.ObjectId;
464
566
  }> & {
@@ -188,6 +188,10 @@ exports.CustomersSchema = new mongoose_1.Schema({
188
188
  type: CustomerAddressDetailsSchema,
189
189
  default: null,
190
190
  },
191
+ other_addresses: {
192
+ type: [CustomerAddressDetailsSchema],
193
+ required: false,
194
+ },
191
195
  cards: {
192
196
  type: [CustomerCardsSchema],
193
197
  default: [],
@@ -10,7 +10,7 @@ export interface ICustomerCard {
10
10
  card_holder_name: string;
11
11
  card_country_code: string | null;
12
12
  }
13
- interface ICustomerAddressDetails {
13
+ export interface ICustomerAddressDetails {
14
14
  city: string;
15
15
  address_instructions: string;
16
16
  state: string;
@@ -47,9 +47,9 @@ export interface ICustomer {
47
47
  gift_cards: Record<string, number>;
48
48
  voucher_codes: Record<string, number>;
49
49
  address_details: ICustomerAddressDetails | null;
50
+ other_addresses?: ICustomerAddressDetails[] | null;
50
51
  cards: ICustomerCard[];
51
52
  order_ids: string[];
52
53
  createdAt: Date;
53
54
  updatedAt: Date;
54
55
  }
55
- export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@managesome/eposmatic-toolkit",
3
- "version": "0.2.788",
3
+ "version": "0.2.789",
4
4
  "description": "A Toolkit Library for Eposmatic",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",