repzo 1.0.134 → 1.0.136

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/lib/index.d.ts CHANGED
@@ -1,12 +1,99 @@
1
1
  import type {
2
- Params,
3
- Data,
4
2
  Service,
5
3
  Options,
6
4
  Headers,
7
5
  StringId,
8
6
  NameSpaces,
9
7
  } from "./types/index";
8
+ export declare const end_points: {
9
+ readonly CLIENT: "client";
10
+ readonly PRODUCT: "product";
11
+ readonly VARIANT: "variant";
12
+ readonly CATEGORY: "product-category";
13
+ readonly SUB_CATEGORY: "product-sub-category";
14
+ readonly BRAND: "product-brand";
15
+ readonly PRODUCT_GROUP: "product-group";
16
+ readonly TAX: "tax";
17
+ readonly MEASUREUNIT: "measureunits";
18
+ readonly MEASUREUNIT_FAMILY: "measureunit-family";
19
+ readonly MEDIA: "media";
20
+ readonly PRICELIST: "pricelists";
21
+ readonly PRICELIST_ITEM: "pricelistsitems";
22
+ readonly TEAM: "teams";
23
+ readonly RETURN_REASON: "return-reason";
24
+ readonly REP: "rep";
25
+ readonly TAG: "tag";
26
+ readonly WAREHOUSE: "warehouse";
27
+ readonly ROUTE: "route";
28
+ readonly PRODUCT_MODIFIERS_GROUP: "product-modifiers-group";
29
+ readonly CHANNEL: "client-channel";
30
+ readonly SPECIALITY: "speciality";
31
+ readonly CLIENT_CONTACT: "client-contact";
32
+ readonly PAYMENT_TERM: "paymentterms";
33
+ readonly BANK: "banks";
34
+ readonly BANK_LIST: "bankslists";
35
+ readonly CUSTOM_STATUS: "custom-status";
36
+ readonly CUSTOM_LIST: "custom-list";
37
+ readonly CUSTOM_LIST_ITEM: "custom-list-item";
38
+ readonly INVENTORY_ADJUSTMENT_REASON: "inventory-adjustment-reason";
39
+ readonly WORKORDER: "workorder";
40
+ readonly WORKORDER_REQUEST: "workorder-request";
41
+ readonly SUPPLIER: "supplier";
42
+ readonly QUICK_CONVERT_TO_PDF: "quick-convert-to-pdf";
43
+ readonly VISIT: "visit";
44
+ readonly INVOICE: "fullinvoices";
45
+ readonly PROFORMA: "proforma";
46
+ readonly PAYMENT: "payments";
47
+ readonly REFUND: "refund";
48
+ readonly SETTLEMENT: "settlement";
49
+ readonly CHECK: "checks";
50
+ readonly DAY: "day";
51
+ readonly RECEIVING_MATERIAL: "receiving-material";
52
+ readonly ADJUST_ACCOUNT: "adjust-account";
53
+ readonly TRANSFER: "transfer";
54
+ readonly MSL: "msl";
55
+ readonly MSL_PRODUCT: "msl-products";
56
+ readonly MEDIA_STORAGE: "media-storage";
57
+ readonly STORECHECK_TEMPLATE: "storecheck-template";
58
+ readonly ACTIVITY_STORECHECK: "activity-storecheck";
59
+ readonly ADJUST_INVENTORY: "adjust-inventory";
60
+ readonly INVENTORY: "inventory";
61
+ readonly INTEGRATION_APP: "integration-app";
62
+ readonly JOIN_ACTIONS_WEBHOOK: "svix-integration";
63
+ readonly INTEGRATION_ACTION_LOG: "integration-action-log";
64
+ readonly INTEGRATION_COMMAND_LOG: "integration-command-log";
65
+ readonly PATCH_ACTION: "patch-action";
66
+ readonly UPDATE_INTEGRATION_META: "update-integration-meta";
67
+ readonly ASSET_PART_TYPE: "asset-part-type";
68
+ readonly ASSET_PART: "asset-part";
69
+ readonly ASSET_PART_UNIT: "asset-part-unit";
70
+ readonly ASSET_PART_RECEIVAL: "asset-part-receival";
71
+ readonly ASSET_PART_TRANSFER: "asset-part-transfer";
72
+ readonly RETURN_ASSET_PART_UNIT: "return-asset-part-unit";
73
+ readonly STORE_ASSET_PART_UNIT: "store-asset-part-unit";
74
+ readonly OCR_INVOICE_JOB_TEMPLATE: "ocr-invoice-job-template";
75
+ readonly OCR_INVOICE_JOB_GROUP: "ocr-invoice-job-group";
76
+ readonly ACTIVITY_AI_SALES_ORDER: "activity-ai-sales-order";
77
+ readonly OCR_INVOICE_JOB: "ocr-invoice-job";
78
+ readonly OCR_INVOICE_JOB_PAGE: "ocr-invoice-job-page";
79
+ readonly SETTINGS: "settings";
80
+ readonly MAIL_UNSUBSCRIBE: "mail-unsubscribe";
81
+ readonly APPROVAL_REQUEST: "approval-request";
82
+ readonly SAFE_INVOICE_SERIAL_COUNTER: "safe-invoice-serial-counter";
83
+ readonly CLIENT_LOCATION: "client-location";
84
+ readonly ASSET_TYPE: "asset-type";
85
+ readonly ASSET: "asset";
86
+ readonly ASSET_UNIT: "asset-unit";
87
+ readonly WORKORDER_PORTAL: "workorder-portal";
88
+ readonly APPROVAL: "approvals";
89
+ readonly ACTIVITY_FEEDBACK: "activity-feedback";
90
+ readonly ACTIVITY_FEEDBACKV2: "activity-feedback-v2";
91
+ readonly FEEDBACK_OPTION: "feedback-options";
92
+ readonly WORKORDER_CATEGORY: "workorder-category";
93
+ readonly CONTRACT: "contract";
94
+ readonly CONTRACT_INSTALLMENT: "contract-installment";
95
+ };
96
+ export type EndPoints = typeof end_points[keyof typeof end_points];
10
97
  export default class Repzo {
11
98
  private svAPIEndpoint;
12
99
  headers: Headers;
@@ -1092,9 +1179,9 @@ export default class Repzo {
1092
1179
  status: Service.ActionLogs.Status;
1093
1180
  error?: any;
1094
1181
  start_time: number;
1095
- end_time?: number | undefined;
1096
- total_time?: number | undefined;
1097
- company_namespace?: NameSpaces | undefined;
1182
+ end_time?: number;
1183
+ total_time?: number;
1184
+ company_namespace?: NameSpaces;
1098
1185
  body?: any;
1099
1186
  meta?: any;
1100
1187
  message: string;
@@ -1102,12 +1189,12 @@ export default class Repzo {
1102
1189
  sync_id: string;
1103
1190
  isOld: boolean;
1104
1191
  superThis: Repzo;
1105
- load(sync_id: string): Promise<any>;
1106
- setStatus(status: Service.ActionLogs.Status, error?: any): any;
1107
- setBody(body: any): any;
1108
- setMeta(meta: any): any;
1109
- commit(): Promise<any>;
1110
- addDetail(detail: string, meta?: any): any;
1192
+ load(sync_id: string): Promise</*elided*/ any>;
1193
+ setStatus(status: Service.ActionLogs.Status, error?: any): /*elided*/ any;
1194
+ setBody(body: any): /*elided*/ any;
1195
+ setMeta(meta: any): /*elided*/ any;
1196
+ commit(): Promise</*elided*/ any>;
1197
+ addDetail(detail: string, meta?: any): /*elided*/ any;
1111
1198
  };
1112
1199
  };
1113
1200
  static CommandLog: {
@@ -1125,8 +1212,8 @@ export default class Repzo {
1125
1212
  status: Service.CommandLog.Status;
1126
1213
  error?: any;
1127
1214
  start_time: number;
1128
- end_time?: number | undefined;
1129
- total_time?: number | undefined;
1215
+ end_time?: number;
1216
+ total_time?: number;
1130
1217
  company_namespace: NameSpaces;
1131
1218
  body?: any;
1132
1219
  sync_details: {
@@ -1146,24 +1233,24 @@ export default class Repzo {
1146
1233
  details: Service.CommandLog.Detail[];
1147
1234
  sync_id: string;
1148
1235
  isOld: boolean;
1149
- priority?: number | undefined;
1236
+ priority?: number;
1150
1237
  isPrioritized: boolean;
1151
1238
  retries: number;
1152
- queuedAt?: Date | undefined;
1153
- failedAt?: Date | undefined;
1154
- succeededAt?: Date | undefined;
1155
- skippedAt?: Date | undefined;
1156
- receivedAt?: Date | undefined;
1157
- processedAt?: Date | undefined;
1239
+ queuedAt?: Date;
1240
+ failedAt?: Date;
1241
+ succeededAt?: Date;
1242
+ skippedAt?: Date;
1243
+ receivedAt?: Date;
1244
+ processedAt?: Date;
1158
1245
  onGoing: boolean;
1159
- trigger?: string | undefined;
1246
+ trigger?: string;
1160
1247
  superThis: Repzo;
1161
- load(sync_id?: string, retries?: number): Promise<any>;
1162
- setStatus(status: Service.CommandLog.Status, error?: any): any;
1163
- setBody(body: any): any;
1164
- setMeta(meta: any): any;
1165
- commit(): Promise<any>;
1166
- addDetail(detail: string, meta?: any): any;
1248
+ load(sync_id?: string, retries?: number): Promise</*elided*/ any>;
1249
+ setStatus(status: Service.CommandLog.Status, error?: any): /*elided*/ any;
1250
+ setBody(body: any): /*elided*/ any;
1251
+ setMeta(meta: any): /*elided*/ any;
1252
+ commit(): Promise</*elided*/ any>;
1253
+ addDetail(detail: string, meta?: any): /*elided*/ any;
1167
1254
  };
1168
1255
  };
1169
1256
  patchAction: {
package/lib/index.js CHANGED
@@ -1,6 +1,94 @@
1
1
  import axios from "axios";
2
2
  import { v4 as uuid } from "uuid";
3
- export default class Repzo {
3
+ export const end_points = {
4
+ CLIENT: "client",
5
+ PRODUCT: "product",
6
+ VARIANT: "variant",
7
+ CATEGORY: "product-category",
8
+ SUB_CATEGORY: "product-sub-category",
9
+ BRAND: "product-brand",
10
+ PRODUCT_GROUP: "product-group",
11
+ TAX: "tax",
12
+ MEASUREUNIT: "measureunits",
13
+ MEASUREUNIT_FAMILY: "measureunit-family",
14
+ MEDIA: "media",
15
+ PRICELIST: "pricelists",
16
+ PRICELIST_ITEM: "pricelistsitems",
17
+ TEAM: "teams",
18
+ RETURN_REASON: "return-reason",
19
+ REP: "rep",
20
+ TAG: "tag",
21
+ WAREHOUSE: "warehouse",
22
+ ROUTE: "route",
23
+ PRODUCT_MODIFIERS_GROUP: "product-modifiers-group",
24
+ CHANNEL: "client-channel",
25
+ SPECIALITY: "speciality",
26
+ CLIENT_CONTACT: "client-contact",
27
+ PAYMENT_TERM: "paymentterms",
28
+ BANK: "banks",
29
+ BANK_LIST: "bankslists",
30
+ CUSTOM_STATUS: "custom-status",
31
+ CUSTOM_LIST: "custom-list",
32
+ CUSTOM_LIST_ITEM: "custom-list-item",
33
+ INVENTORY_ADJUSTMENT_REASON: "inventory-adjustment-reason",
34
+ WORKORDER: "workorder",
35
+ WORKORDER_REQUEST: "workorder-request",
36
+ SUPPLIER: "supplier",
37
+ QUICK_CONVERT_TO_PDF: "quick-convert-to-pdf",
38
+ VISIT: "visit",
39
+ INVOICE: "fullinvoices",
40
+ PROFORMA: "proforma",
41
+ PAYMENT: "payments",
42
+ REFUND: "refund",
43
+ SETTLEMENT: "settlement",
44
+ CHECK: "checks",
45
+ DAY: "day",
46
+ RECEIVING_MATERIAL: "receiving-material",
47
+ ADJUST_ACCOUNT: "adjust-account",
48
+ TRANSFER: "transfer",
49
+ MSL: "msl",
50
+ MSL_PRODUCT: "msl-products",
51
+ MEDIA_STORAGE: "media-storage",
52
+ STORECHECK_TEMPLATE: "storecheck-template",
53
+ ACTIVITY_STORECHECK: "activity-storecheck",
54
+ ADJUST_INVENTORY: "adjust-inventory",
55
+ INVENTORY: "inventory",
56
+ INTEGRATION_APP: "integration-app",
57
+ JOIN_ACTIONS_WEBHOOK: "svix-integration",
58
+ INTEGRATION_ACTION_LOG: "integration-action-log",
59
+ INTEGRATION_COMMAND_LOG: "integration-command-log",
60
+ PATCH_ACTION: "patch-action",
61
+ UPDATE_INTEGRATION_META: "update-integration-meta",
62
+ ASSET_PART_TYPE: "asset-part-type",
63
+ ASSET_PART: "asset-part",
64
+ ASSET_PART_UNIT: "asset-part-unit",
65
+ ASSET_PART_RECEIVAL: "asset-part-receival",
66
+ ASSET_PART_TRANSFER: "asset-part-transfer",
67
+ RETURN_ASSET_PART_UNIT: "return-asset-part-unit",
68
+ STORE_ASSET_PART_UNIT: "store-asset-part-unit",
69
+ OCR_INVOICE_JOB_TEMPLATE: "ocr-invoice-job-template",
70
+ OCR_INVOICE_JOB_GROUP: "ocr-invoice-job-group",
71
+ ACTIVITY_AI_SALES_ORDER: "activity-ai-sales-order",
72
+ OCR_INVOICE_JOB: "ocr-invoice-job",
73
+ OCR_INVOICE_JOB_PAGE: "ocr-invoice-job-page",
74
+ SETTINGS: "settings",
75
+ MAIL_UNSUBSCRIBE: "mail-unsubscribe",
76
+ APPROVAL_REQUEST: "approval-request",
77
+ SAFE_INVOICE_SERIAL_COUNTER: "safe-invoice-serial-counter",
78
+ CLIENT_LOCATION: "client-location",
79
+ ASSET_TYPE: "asset-type",
80
+ ASSET: "asset",
81
+ ASSET_UNIT: "asset-unit",
82
+ WORKORDER_PORTAL: "workorder-portal",
83
+ APPROVAL: "approvals",
84
+ ACTIVITY_FEEDBACK: "activity-feedback",
85
+ ACTIVITY_FEEDBACKV2: "activity-feedback-v2",
86
+ FEEDBACK_OPTION: "feedback-options",
87
+ WORKORDER_CATEGORY: "workorder-category",
88
+ CONTRACT: "contract",
89
+ CONTRACT_INSTALLMENT: "contract-installment",
90
+ };
91
+ class Repzo {
4
92
  constructor(apiKey, options) {
5
93
  this.client = {
6
94
  _path: Repzo._end_points.CLIENT,
@@ -2985,94 +3073,7 @@ export default class Repzo {
2985
3073
  return res.data;
2986
3074
  }
2987
3075
  }
2988
- Repzo._end_points = {
2989
- CLIENT: "client",
2990
- PRODUCT: "product",
2991
- VARIANT: "variant",
2992
- CATEGORY: "product-category",
2993
- SUB_CATEGORY: "product-sub-category",
2994
- BRAND: "product-brand",
2995
- PRODUCT_GROUP: "product-group",
2996
- TAX: "tax",
2997
- MEASUREUNIT: "measureunits",
2998
- MEASUREUNIT_FAMILY: "measureunit-family",
2999
- MEDIA: "media",
3000
- PRICELIST: "pricelists",
3001
- PRICELIST_ITEM: "pricelistsitems",
3002
- TEAM: "teams",
3003
- RETURN_REASON: "return-reason",
3004
- REP: "rep",
3005
- TAG: "tag",
3006
- WAREHOUSE: "warehouse",
3007
- ROUTE: "route",
3008
- PRODUCT_MODIFIERS_GROUP: "product-modifiers-group",
3009
- CHANNEL: "client-channel",
3010
- SPECIALITY: "speciality",
3011
- CLIENT_CONTACT: "client-contact",
3012
- PAYMENT_TERM: "paymentterms",
3013
- BANK: "banks",
3014
- BANK_LIST: "bankslists",
3015
- CUSTOM_STATUS: "custom-status",
3016
- CUSTOM_LIST: "custom-list",
3017
- CUSTOM_LIST_ITEM: "custom-list-item",
3018
- INVENTORY_ADJUSTMENT_REASON: "inventory-adjustment-reason",
3019
- WORKORDER: "workorder",
3020
- WORKORDER_REQUEST: "workorder-request",
3021
- SUPPLIER: "supplier",
3022
- QUICK_CONVERT_TO_PDF: "quick-convert-to-pdf",
3023
- VISIT: "visit",
3024
- INVOICE: "fullinvoices",
3025
- PROFORMA: "proforma",
3026
- PAYMENT: "payments",
3027
- REFUND: "refund",
3028
- SETTLEMENT: "settlement",
3029
- CHECK: "checks",
3030
- DAY: "day",
3031
- RECEIVING_MATERIAL: "receiving-material",
3032
- ADJUST_ACCOUNT: "adjust-account",
3033
- TRANSFER: "transfer",
3034
- MSL: "msl",
3035
- MSL_PRODUCT: "msl-products",
3036
- MEDIA_STORAGE: "media-storage",
3037
- STORECHECK_TEMPLATE: "storecheck-template",
3038
- ACTIVITY_STORECHECK: "activity-storecheck",
3039
- ADJUST_INVENTORY: "adjust-inventory",
3040
- INVENTORY: "inventory",
3041
- INTEGRATION_APP: "integration-app",
3042
- JOIN_ACTIONS_WEBHOOK: "svix-integration",
3043
- INTEGRATION_ACTION_LOG: "integration-action-log",
3044
- INTEGRATION_COMMAND_LOG: "integration-command-log",
3045
- PATCH_ACTION: "patch-action",
3046
- UPDATE_INTEGRATION_META: "update-integration-meta",
3047
- ASSET_PART_TYPE: "asset-part-type",
3048
- ASSET_PART: "asset-part",
3049
- ASSET_PART_UNIT: "asset-part-unit",
3050
- ASSET_PART_RECEIVAL: "asset-part-receival",
3051
- ASSET_PART_TRANSFER: "asset-part-transfer",
3052
- RETURN_ASSET_PART_UNIT: "return-asset-part-unit",
3053
- STORE_ASSET_PART_UNIT: "store-asset-part-unit",
3054
- OCR_INVOICE_JOB_TEMPLATE: "ocr-invoice-job-template",
3055
- OCR_INVOICE_JOB_GROUP: "ocr-invoice-job-group",
3056
- ACTIVITY_AI_SALES_ORDER: "activity-ai-sales-order",
3057
- OCR_INVOICE_JOB: "ocr-invoice-job",
3058
- OCR_INVOICE_JOB_PAGE: "ocr-invoice-job-page",
3059
- SETTINGS: "settings",
3060
- MAIL_UNSUBSCRIBE: "mail-unsubscribe",
3061
- APPROVAL_REQUEST: "approval-request",
3062
- SAFE_INVOICE_SERIAL_COUNTER: "safe-invoice-serial-counter",
3063
- CLIENT_LOCATION: "client-location",
3064
- ASSET_TYPE: "asset-type",
3065
- ASSET: "asset",
3066
- ASSET_UNIT: "asset-unit",
3067
- WORKORDER_PORTAL: "workorder-portal",
3068
- APPROVAL: "approvals",
3069
- ACTIVITY_FEEDBACK: "activity-feedback",
3070
- ACTIVITY_FEEDBACKV2: "activity-feedback-v2",
3071
- FEEDBACK_OPTION: "feedback-options",
3072
- WORKORDER_CATEGORY: "workorder-category",
3073
- CONTRACT: "contract",
3074
- CONTRACT_INSTALLMENT: "contract-installment",
3075
- };
3076
+ Repzo._end_points = end_points;
3076
3077
  Repzo.ActionLogs = class {
3077
3078
  constructor(superThis, sync_id) {
3078
3079
  this.superThis = superThis;
@@ -3369,6 +3370,7 @@ Repzo.CommandLog = class {
3369
3370
  return this;
3370
3371
  }
3371
3372
  };
3373
+ export default Repzo;
3372
3374
  function normalizeParams(params) {
3373
3375
  const normalized = {};
3374
3376
  for (const key in params) {
@@ -2690,6 +2690,7 @@ export declare namespace Service {
2690
2690
  linked_to_device?: boolean;
2691
2691
  live_location?: boolean;
2692
2692
  phone?: string;
2693
+ email?: string;
2693
2694
  integration_id?: string;
2694
2695
  permissions: RepPermissions;
2695
2696
  preferences: {
@@ -2747,6 +2748,7 @@ export declare namespace Service {
2747
2748
  linked_to_device?: boolean;
2748
2749
  live_location?: boolean;
2749
2750
  phone?: string;
2751
+ email?: string;
2750
2752
  integration_id?: string;
2751
2753
  permissions?: RepPermissions;
2752
2754
  preferences?: {
@@ -2793,11 +2795,33 @@ export declare namespace Service {
2793
2795
  cover_photo?: string;
2794
2796
  last_login_time?: number;
2795
2797
  }
2796
- type PopulatedKeys = "line" | "job_category" | "teams";
2798
+ type PopulatedKeys =
2799
+ | "line"
2800
+ | "lines"
2801
+ | "job_category"
2802
+ | "teams"
2803
+ | "assigned_forms_v2"
2804
+ | "job_category"
2805
+ | "cover_photo"
2806
+ | "assigned_plan"
2807
+ | "assigned_retail_execution_templates"
2808
+ | "warehouse";
2797
2809
  export type RepWithPopulatedKeysSchema = RepSchema & {
2798
2810
  lines?: string[] | Line.LineSchema[];
2799
2811
  job_category?: string[] | JobCategory.JobCategorySchema[];
2800
2812
  teams?: string[] | Team.TeamSchema[];
2813
+ assigned_warehouse?:
2814
+ | string
2815
+ | Pick<
2816
+ Warehouse.WarehouseSchema,
2817
+ "_id" | "name" | "code" | "type" | "integration_meta"
2818
+ >;
2819
+ assigned_main_warehouse?:
2820
+ | string
2821
+ | Pick<
2822
+ Warehouse.WarehouseSchema,
2823
+ "_id" | "name" | "code" | "type" | "integration_meta"
2824
+ >;
2801
2825
  };
2802
2826
  export namespace Find {
2803
2827
  type Params = DefaultPaginationQueryParams & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repzo",
3
- "version": "1.0.134",
3
+ "version": "1.0.136",
4
4
  "description": "Repzo TypeScript SDK",
5
5
  "main": "./lib/index.js",
6
6
  "type": "module",
@@ -2733,6 +2733,7 @@ export namespace Service {
2733
2733
  linked_to_device?: boolean;
2734
2734
  live_location?: boolean;
2735
2735
  phone?: string;
2736
+ email?: string;
2736
2737
  integration_id?: string;
2737
2738
  permissions: RepPermissions;
2738
2739
  preferences: {
@@ -2786,6 +2787,7 @@ export namespace Service {
2786
2787
  linked_to_device?: boolean;
2787
2788
  live_location?: boolean;
2788
2789
  phone?: string;
2790
+ email?: string;
2789
2791
  integration_id?: string;
2790
2792
  permissions?: RepPermissions;
2791
2793
  preferences?: {
@@ -2829,12 +2831,34 @@ export namespace Service {
2829
2831
  last_login_time?: number;
2830
2832
  }
2831
2833
 
2832
- type PopulatedKeys = "line" | "job_category" | "teams";
2834
+ type PopulatedKeys =
2835
+ | "line"
2836
+ | "lines"
2837
+ | "job_category"
2838
+ | "teams"
2839
+ | "assigned_forms_v2"
2840
+ | "job_category"
2841
+ | "cover_photo"
2842
+ | "assigned_plan"
2843
+ | "assigned_retail_execution_templates"
2844
+ | "warehouse";
2833
2845
 
2834
2846
  export type RepWithPopulatedKeysSchema = RepSchema & {
2835
2847
  lines?: string[] | Line.LineSchema[];
2836
2848
  job_category?: string[] | JobCategory.JobCategorySchema[];
2837
2849
  teams?: string[] | Team.TeamSchema[];
2850
+ assigned_warehouse?:
2851
+ | string
2852
+ | Pick<
2853
+ Warehouse.WarehouseSchema,
2854
+ "_id" | "name" | "code" | "type" | "integration_meta"
2855
+ >;
2856
+ assigned_main_warehouse?:
2857
+ | string
2858
+ | Pick<
2859
+ Warehouse.WarehouseSchema,
2860
+ "_id" | "name" | "code" | "type" | "integration_meta"
2861
+ >;
2838
2862
  };
2839
2863
 
2840
2864
  export namespace Find {