repzo 1.0.132 → 1.0.134

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.
@@ -13960,7 +13960,7 @@ export declare namespace Service {
13960
13960
  };
13961
13961
  media?: StringId[];
13962
13962
  cover_photo?: StringId;
13963
- comany_namespace: string[];
13963
+ company_namespace: string[];
13964
13964
  createdAt: string;
13965
13965
  updatedAt: string;
13966
13966
  }
@@ -14033,7 +14033,7 @@ export declare namespace Service {
14033
14033
  };
14034
14034
  media?: StringId[] | PopulatedMediaStorage[];
14035
14035
  cover_photo?: StringId | PopulatedMediaStorage;
14036
- comany_namespace: string[];
14036
+ company_namespace: string[];
14037
14037
  createdAt: string;
14038
14038
  updatedAt: string;
14039
14039
  }
@@ -14104,7 +14104,7 @@ export declare namespace Service {
14104
14104
  integration_meta?: {
14105
14105
  [key: string]: any;
14106
14106
  };
14107
- comany_namespace: string[];
14107
+ company_namespace: string[];
14108
14108
  createdAt: string;
14109
14109
  updatedAt: string;
14110
14110
  }
@@ -14117,7 +14117,7 @@ export declare namespace Service {
14117
14117
  integration_meta?: {
14118
14118
  [key: string]: any;
14119
14119
  };
14120
- comany_namespace?: string[];
14120
+ company_namespace?: string[];
14121
14121
  }
14122
14122
  interface UpdateBody {
14123
14123
  _id?: StringId;
@@ -14130,7 +14130,7 @@ export declare namespace Service {
14130
14130
  integration_meta?: {
14131
14131
  [key: string]: any;
14132
14132
  };
14133
- comany_namespace?: string[];
14133
+ company_namespace?: string[];
14134
14134
  }
14135
14135
  namespace Find {
14136
14136
  type Params = DefaultPaginationQueryParams & {
@@ -14195,7 +14195,7 @@ export declare namespace Service {
14195
14195
  }[];
14196
14196
  media?: StringId[];
14197
14197
  renewed_from?: StringId;
14198
- comany_namespace: string[];
14198
+ company_namespace: string[];
14199
14199
  createdAt: string;
14200
14200
  updatedAt: string;
14201
14201
  }
@@ -14218,7 +14218,7 @@ export declare namespace Service {
14218
14218
  }[];
14219
14219
  media?: StringId[];
14220
14220
  renewed_from?: StringId;
14221
- comany_namespace?: string[];
14221
+ company_namespace?: string[];
14222
14222
  }
14223
14223
  export interface UpdateBody {
14224
14224
  _id?: StringId;
@@ -14241,7 +14241,7 @@ export declare namespace Service {
14241
14241
  }[];
14242
14242
  media?: StringId[];
14243
14243
  renewed_from?: StringId;
14244
- comany_namespace?: string[];
14244
+ company_namespace?: string[];
14245
14245
  createdAt?: string;
14246
14246
  updatedAt?: string;
14247
14247
  }
@@ -14278,7 +14278,7 @@ export declare namespace Service {
14278
14278
  media_populated?: PopulatedMediaStorage[];
14279
14279
  renewed_from?: StringId;
14280
14280
  renewed_from_populated?: Data;
14281
- comany_namespace: string[];
14281
+ company_namespace: string[];
14282
14282
  createdAt: string;
14283
14283
  updatedAt: string;
14284
14284
  }
@@ -14361,7 +14361,7 @@ export declare namespace Service {
14361
14361
  disabled: boolean;
14362
14362
  is_renewed?: boolean;
14363
14363
  bulk_uuid?: string;
14364
- comany_namespace: string[];
14364
+ company_namespace: string[];
14365
14365
  createdAt: string;
14366
14366
  updatedAt: string;
14367
14367
  }
@@ -14379,7 +14379,7 @@ export declare namespace Service {
14379
14379
  is_renewed?: boolean;
14380
14380
  bulk_uuid?: string;
14381
14381
  media?: StringId[];
14382
- comany_namespace?: string[];
14382
+ company_namespace?: string[];
14383
14383
  }
14384
14384
  export interface UpdateBody {
14385
14385
  _id?: StringId;
@@ -14397,7 +14397,7 @@ export declare namespace Service {
14397
14397
  disabled?: boolean;
14398
14398
  is_renewed?: boolean;
14399
14399
  bulk_uuid?: string;
14400
- comany_namespace?: string[];
14400
+ company_namespace?: string[];
14401
14401
  createdAt?: string;
14402
14402
  updatedAt?: string;
14403
14403
  }
@@ -14417,7 +14417,7 @@ export declare namespace Service {
14417
14417
  disabled: boolean;
14418
14418
  is_renewed?: boolean;
14419
14419
  bulk_uuid?: string;
14420
- comany_namespace: string[];
14420
+ company_namespace: string[];
14421
14421
  createdAt: string;
14422
14422
  updatedAt: string;
14423
14423
  media_populated?: PopulatedMediaStorage[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repzo",
3
- "version": "1.0.132",
3
+ "version": "1.0.134",
4
4
  "description": "Repzo TypeScript SDK",
5
5
  "main": "./lib/index.js",
6
6
  "type": "module",
package/src/index.ts CHANGED
@@ -10,6 +10,96 @@ import type {
10
10
  NameSpaces,
11
11
  } from "./types/index";
12
12
 
13
+ export const end_points = {
14
+ CLIENT: "client",
15
+ PRODUCT: "product",
16
+ VARIANT: "variant",
17
+ CATEGORY: "product-category",
18
+ SUB_CATEGORY: "product-sub-category",
19
+ BRAND: "product-brand",
20
+ PRODUCT_GROUP: "product-group",
21
+ TAX: "tax",
22
+ MEASUREUNIT: "measureunits",
23
+ MEASUREUNIT_FAMILY: "measureunit-family",
24
+ MEDIA: "media",
25
+ PRICELIST: "pricelists",
26
+ PRICELIST_ITEM: "pricelistsitems",
27
+ TEAM: "teams",
28
+ RETURN_REASON: "return-reason",
29
+ REP: "rep",
30
+ TAG: "tag",
31
+ WAREHOUSE: "warehouse",
32
+ ROUTE: "route",
33
+ PRODUCT_MODIFIERS_GROUP: "product-modifiers-group",
34
+ CHANNEL: "client-channel",
35
+ SPECIALITY: "speciality",
36
+ CLIENT_CONTACT: "client-contact",
37
+ PAYMENT_TERM: "paymentterms",
38
+ BANK: "banks",
39
+ BANK_LIST: "bankslists",
40
+ CUSTOM_STATUS: "custom-status",
41
+ CUSTOM_LIST: "custom-list",
42
+ CUSTOM_LIST_ITEM: "custom-list-item",
43
+ INVENTORY_ADJUSTMENT_REASON: "inventory-adjustment-reason",
44
+ WORKORDER: "workorder",
45
+ WORKORDER_REQUEST: "workorder-request",
46
+ SUPPLIER: "supplier",
47
+ QUICK_CONVERT_TO_PDF: "quick-convert-to-pdf",
48
+ VISIT: "visit",
49
+ INVOICE: "fullinvoices",
50
+ PROFORMA: "proforma",
51
+ PAYMENT: "payments",
52
+ REFUND: "refund",
53
+ SETTLEMENT: "settlement",
54
+ CHECK: "checks",
55
+ DAY: "day",
56
+ RECEIVING_MATERIAL: "receiving-material",
57
+ ADJUST_ACCOUNT: "adjust-account",
58
+ TRANSFER: "transfer",
59
+ MSL: "msl",
60
+ MSL_PRODUCT: "msl-products",
61
+ MEDIA_STORAGE: "media-storage",
62
+ STORECHECK_TEMPLATE: "storecheck-template",
63
+ ACTIVITY_STORECHECK: "activity-storecheck",
64
+ ADJUST_INVENTORY: "adjust-inventory",
65
+ INVENTORY: "inventory",
66
+ INTEGRATION_APP: "integration-app",
67
+ JOIN_ACTIONS_WEBHOOK: "svix-integration",
68
+ INTEGRATION_ACTION_LOG: "integration-action-log",
69
+ INTEGRATION_COMMAND_LOG: "integration-command-log",
70
+ PATCH_ACTION: "patch-action",
71
+ UPDATE_INTEGRATION_META: "update-integration-meta",
72
+ ASSET_PART_TYPE: "asset-part-type",
73
+ ASSET_PART: "asset-part",
74
+ ASSET_PART_UNIT: "asset-part-unit",
75
+ ASSET_PART_RECEIVAL: "asset-part-receival",
76
+ ASSET_PART_TRANSFER: "asset-part-transfer",
77
+ RETURN_ASSET_PART_UNIT: "return-asset-part-unit",
78
+ STORE_ASSET_PART_UNIT: "store-asset-part-unit",
79
+ OCR_INVOICE_JOB_TEMPLATE: "ocr-invoice-job-template",
80
+ OCR_INVOICE_JOB_GROUP: "ocr-invoice-job-group",
81
+ ACTIVITY_AI_SALES_ORDER: "activity-ai-sales-order",
82
+ OCR_INVOICE_JOB: "ocr-invoice-job",
83
+ OCR_INVOICE_JOB_PAGE: "ocr-invoice-job-page",
84
+ SETTINGS: "settings",
85
+ MAIL_UNSUBSCRIBE: "mail-unsubscribe",
86
+ APPROVAL_REQUEST: "approval-request",
87
+ SAFE_INVOICE_SERIAL_COUNTER: "safe-invoice-serial-counter",
88
+ CLIENT_LOCATION: "client-location",
89
+ ASSET_TYPE: "asset-type",
90
+ ASSET: "asset",
91
+ ASSET_UNIT: "asset-unit",
92
+ WORKORDER_PORTAL: "workorder-portal",
93
+ APPROVAL: "approvals",
94
+ ACTIVITY_FEEDBACK: "activity-feedback",
95
+ ACTIVITY_FEEDBACKV2: "activity-feedback-v2",
96
+ FEEDBACK_OPTION: "feedback-options",
97
+ WORKORDER_CATEGORY: "workorder-category",
98
+ CONTRACT: "contract",
99
+ CONTRACT_INSTALLMENT: "contract-installment",
100
+ } as const;
101
+ export type EndPoints = typeof end_points[keyof typeof end_points];
102
+
13
103
  export default class Repzo {
14
104
  private svAPIEndpoint: string;
15
105
  headers: Headers;
@@ -37,94 +127,7 @@ export default class Repzo {
37
127
  }
38
128
  }
39
129
 
40
- private static _end_points = {
41
- CLIENT: "client",
42
- PRODUCT: "product",
43
- VARIANT: "variant",
44
- CATEGORY: "product-category",
45
- SUB_CATEGORY: "product-sub-category",
46
- BRAND: "product-brand",
47
- PRODUCT_GROUP: "product-group",
48
- TAX: "tax",
49
- MEASUREUNIT: "measureunits",
50
- MEASUREUNIT_FAMILY: "measureunit-family",
51
- MEDIA: "media",
52
- PRICELIST: "pricelists",
53
- PRICELIST_ITEM: "pricelistsitems",
54
- TEAM: "teams",
55
- RETURN_REASON: "return-reason",
56
- REP: "rep",
57
- TAG: "tag",
58
- WAREHOUSE: "warehouse",
59
- ROUTE: "route",
60
- PRODUCT_MODIFIERS_GROUP: "product-modifiers-group",
61
- CHANNEL: "client-channel",
62
- SPECIALITY: "speciality",
63
- CLIENT_CONTACT: "client-contact",
64
- PAYMENT_TERM: "paymentterms",
65
- BANK: "banks",
66
- BANK_LIST: "bankslists",
67
- CUSTOM_STATUS: "custom-status",
68
- CUSTOM_LIST: "custom-list",
69
- CUSTOM_LIST_ITEM: "custom-list-item",
70
- INVENTORY_ADJUSTMENT_REASON: "inventory-adjustment-reason",
71
- WORKORDER: "workorder",
72
- WORKORDER_REQUEST: "workorder-request",
73
- SUPPLIER: "supplier",
74
- QUICK_CONVERT_TO_PDF: "quick-convert-to-pdf",
75
- VISIT: "visit",
76
- INVOICE: "fullinvoices",
77
- PROFORMA: "proforma",
78
- PAYMENT: "payments",
79
- REFUND: "refund",
80
- SETTLEMENT: "settlement",
81
- CHECK: "checks",
82
- DAY: "day",
83
- RECEIVING_MATERIAL: "receiving-material",
84
- ADJUST_ACCOUNT: "adjust-account",
85
- TRANSFER: "transfer",
86
- MSL: "msl",
87
- MSL_PRODUCT: "msl-products",
88
- MEDIA_STORAGE: "media-storage",
89
- STORECHECK_TEMPLATE: "storecheck-template",
90
- ACTIVITY_STORECHECK: "activity-storecheck",
91
- ADJUST_INVENTORY: "adjust-inventory",
92
- INVENTORY: "inventory",
93
- INTEGRATION_APP: "integration-app",
94
- JOIN_ACTIONS_WEBHOOK: "svix-integration",
95
- INTEGRATION_ACTION_LOG: "integration-action-log",
96
- INTEGRATION_COMMAND_LOG: "integration-command-log",
97
- PATCH_ACTION: "patch-action",
98
- UPDATE_INTEGRATION_META: "update-integration-meta",
99
- ASSET_PART_TYPE: "asset-part-type",
100
- ASSET_PART: "asset-part",
101
- ASSET_PART_UNIT: "asset-part-unit",
102
- ASSET_PART_RECEIVAL: "asset-part-receival",
103
- ASSET_PART_TRANSFER: "asset-part-transfer",
104
- RETURN_ASSET_PART_UNIT: "return-asset-part-unit",
105
- STORE_ASSET_PART_UNIT: "store-asset-part-unit",
106
- OCR_INVOICE_JOB_TEMPLATE: "ocr-invoice-job-template",
107
- OCR_INVOICE_JOB_GROUP: "ocr-invoice-job-group",
108
- ACTIVITY_AI_SALES_ORDER: "activity-ai-sales-order",
109
- OCR_INVOICE_JOB: "ocr-invoice-job",
110
- OCR_INVOICE_JOB_PAGE: "ocr-invoice-job-page",
111
- SETTINGS: "settings",
112
- MAIL_UNSUBSCRIBE: "mail-unsubscribe",
113
- APPROVAL_REQUEST: "approval-request",
114
- SAFE_INVOICE_SERIAL_COUNTER: "safe-invoice-serial-counter",
115
- CLIENT_LOCATION: "client-location",
116
- ASSET_TYPE: "asset-type",
117
- ASSET: "asset",
118
- ASSET_UNIT: "asset-unit",
119
- WORKORDER_PORTAL: "workorder-portal",
120
- APPROVAL: "approvals",
121
- ACTIVITY_FEEDBACK: "activity-feedback",
122
- ACTIVITY_FEEDBACKV2: "activity-feedback-v2",
123
- FEEDBACK_OPTION: "feedback-options",
124
- WORKORDER_CATEGORY: "workorder-category",
125
- CONTRACT: "contract",
126
- CONTRACT_INSTALLMENT: "contract-installment",
127
- } as const;
130
+ private static _end_points = end_points;
128
131
  public static get END_POINTS() {
129
132
  return Repzo._end_points;
130
133
  }
@@ -13435,7 +13435,7 @@ export namespace Service {
13435
13435
  integration_meta?: { [key: string]: any };
13436
13436
  media?: StringId[];
13437
13437
  cover_photo?: StringId;
13438
- comany_namespace: string[];
13438
+ company_namespace: string[];
13439
13439
  createdAt: string;
13440
13440
  updatedAt: string;
13441
13441
  }
@@ -13504,7 +13504,7 @@ export namespace Service {
13504
13504
  integration_meta?: { [key: string]: any };
13505
13505
  media?: StringId[] | PopulatedMediaStorage[];
13506
13506
  cover_photo?: StringId | PopulatedMediaStorage;
13507
- comany_namespace: string[];
13507
+ company_namespace: string[];
13508
13508
  createdAt: string;
13509
13509
  updatedAt: string;
13510
13510
  }
@@ -13572,7 +13572,7 @@ export namespace Service {
13572
13572
  description?: string;
13573
13573
  disabled: boolean;
13574
13574
  integration_meta?: { [key: string]: any };
13575
- comany_namespace: string[];
13575
+ company_namespace: string[];
13576
13576
  createdAt: string;
13577
13577
  updatedAt: string;
13578
13578
  }
@@ -13584,7 +13584,7 @@ export namespace Service {
13584
13584
  description?: string;
13585
13585
  disabled?: boolean;
13586
13586
  integration_meta?: { [key: string]: any };
13587
- comany_namespace?: string[];
13587
+ company_namespace?: string[];
13588
13588
  }
13589
13589
  export interface UpdateBody {
13590
13590
  _id?: StringId;
@@ -13595,7 +13595,7 @@ export namespace Service {
13595
13595
  description?: string;
13596
13596
  disabled?: boolean;
13597
13597
  integration_meta?: { [key: string]: any };
13598
- comany_namespace?: string[];
13598
+ company_namespace?: string[];
13599
13599
  }
13600
13600
 
13601
13601
  export namespace Find {
@@ -13659,7 +13659,7 @@ export namespace Service {
13659
13659
  }[];
13660
13660
  media?: StringId[];
13661
13661
  renewed_from?: StringId;
13662
- comany_namespace: string[];
13662
+ company_namespace: string[];
13663
13663
  createdAt: string;
13664
13664
  updatedAt: string;
13665
13665
  }
@@ -13682,7 +13682,7 @@ export namespace Service {
13682
13682
  }[];
13683
13683
  media?: StringId[];
13684
13684
  renewed_from?: StringId;
13685
- comany_namespace?: string[];
13685
+ company_namespace?: string[];
13686
13686
  }
13687
13687
  export interface UpdateBody {
13688
13688
  _id?: StringId;
@@ -13705,7 +13705,7 @@ export namespace Service {
13705
13705
  }[];
13706
13706
  media?: StringId[];
13707
13707
  renewed_from?: StringId;
13708
- comany_namespace?: string[];
13708
+ company_namespace?: string[];
13709
13709
  createdAt?: string;
13710
13710
  updatedAt?: string;
13711
13711
  }
@@ -13742,7 +13742,7 @@ export namespace Service {
13742
13742
  media_populated?: PopulatedMediaStorage[];
13743
13743
  renewed_from?: StringId;
13744
13744
  renewed_from_populated?: Data;
13745
- comany_namespace: string[];
13745
+ company_namespace: string[];
13746
13746
  createdAt: string;
13747
13747
  updatedAt: string;
13748
13748
  }
@@ -13822,7 +13822,7 @@ export namespace Service {
13822
13822
  disabled: boolean;
13823
13823
  is_renewed?: boolean;
13824
13824
  bulk_uuid?: string;
13825
- comany_namespace: string[];
13825
+ company_namespace: string[];
13826
13826
  createdAt: string;
13827
13827
  updatedAt: string;
13828
13828
  }
@@ -13840,7 +13840,7 @@ export namespace Service {
13840
13840
  is_renewed?: boolean;
13841
13841
  bulk_uuid?: string;
13842
13842
  media?: StringId[];
13843
- comany_namespace?: string[];
13843
+ company_namespace?: string[];
13844
13844
  }
13845
13845
  export interface UpdateBody {
13846
13846
  _id?: StringId;
@@ -13858,7 +13858,7 @@ export namespace Service {
13858
13858
  disabled?: boolean;
13859
13859
  is_renewed?: boolean;
13860
13860
  bulk_uuid?: string;
13861
- comany_namespace?: string[];
13861
+ company_namespace?: string[];
13862
13862
  createdAt?: string;
13863
13863
  updatedAt?: string;
13864
13864
  }
@@ -13878,7 +13878,7 @@ export namespace Service {
13878
13878
  disabled: boolean;
13879
13879
  is_renewed?: boolean;
13880
13880
  bulk_uuid?: string;
13881
- comany_namespace: string[];
13881
+ company_namespace: string[];
13882
13882
  createdAt: string;
13883
13883
  updatedAt: string;
13884
13884
  media_populated?: PopulatedMediaStorage[];