repzo 1.0.282 → 1.0.284

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
@@ -11,6 +11,7 @@ export declare const end_points: {
11
11
  readonly MEASUREUNIT: "measureunits";
12
12
  readonly MEASUREUNIT_FAMILY: "measureunit-family";
13
13
  readonly MEDIA: "media";
14
+ readonly CYCLES: "cycles";
14
15
  readonly PRICELIST: "pricelists";
15
16
  readonly PRICELIST_ITEM: "pricelistsitems";
16
17
  readonly TEAM: "teams";
@@ -142,6 +143,8 @@ export declare const end_points: {
142
143
  readonly CALENDAR: "calendar";
143
144
  readonly LINE_TARGET: "line-target";
144
145
  readonly BULK_IMPORT: "bulk-import";
146
+ readonly DELIVERY_NOTE: "delivery-note";
147
+ readonly RESERVATION: "reservation";
145
148
  };
146
149
  export type EndPoints = (typeof end_points)[keyof typeof end_points];
147
150
  export declare const availableService: readonly ["client", "product", "variant", "category", "sub_category", "brand", "product_group", "tax", "measureunit", "measureunitFamily", "media", "priceList", "priceListItem", "team", "returnReason", "rep", "tag", "warehouse", "route", "productModifiersGroup", "channel", "speciality", "clientContact", "paymentTerm", "bank", "bank_list", "customStatus", "customList", "customListItem", "inventoryAdjustmentReason", "workorder", "workorderRequest", "supplier", "quickConvertToPdf", "visit", "activityFeedback", "activityFeedbackV2", "feedbackOption", "invoice", "proforma", "payment", "refund", "settlement", "voidSettlement", "check", "day", "receivingMaterial", "adjustAccount", "transfer", "msl", "mslProduct", "mediaStorage", "storecheckTemplate", "activityStorecheck", "activityItemStatus", "adjustInventory", "inventory", "integrationApp", "joinActionsWebHook", "patchAction", "updateIntegrationMeta", "assetPartType", "assetPart", "assetPartUnit", "assetPartReceival", "assetPartTransfer", "returnAssetPartUnit", "storeAssetPartUnit", "ocrInvoiceJobTemplate", "ocrInvoiceJobGroup", "activityAiSalesOrder", "ocrInvoiceJob", "ocrInvoiceJobPage", "settings", "mailUnsubscribe", "approvalRequest", "safeInvoiceSerialCounter", "clientLocation", "assetType", "asset", "assetUnit", "workorderPortal", "approval", "workorderCategory", "contract", "contractInstallment", "repBalanceSummary", "workorderPortalLink", "customField", "salesAnalyticsReport", "clmPresentation", "clmSequence", "clmSlide", "clmFetch", "pdfMergeField", "visitReason", "targetRule", "plan", "calendar", "lineTarget", "bulkImport"];
@@ -168,6 +171,7 @@ export default class Repzo {
168
171
  readonly MEASUREUNIT: "measureunits";
169
172
  readonly MEASUREUNIT_FAMILY: "measureunit-family";
170
173
  readonly MEDIA: "media";
174
+ readonly CYCLES: "cycles";
171
175
  readonly PRICELIST: "pricelists";
172
176
  readonly PRICELIST_ITEM: "pricelistsitems";
173
177
  readonly TEAM: "teams";
@@ -299,6 +303,8 @@ export default class Repzo {
299
303
  readonly CALENDAR: "calendar";
300
304
  readonly LINE_TARGET: "line-target";
301
305
  readonly BULK_IMPORT: "bulk-import";
306
+ readonly DELIVERY_NOTE: "delivery-note";
307
+ readonly RESERVATION: "reservation";
302
308
  };
303
309
  private _retryRequest;
304
310
  private _fetch;
@@ -1196,6 +1202,11 @@ export default class Repzo {
1196
1202
  _path: "clm-fetch";
1197
1203
  find: (params?: Service.CLMFetch.Find.Params) => Promise<Service.CLMFetch.Find.Result>;
1198
1204
  };
1205
+ cycle: {
1206
+ _path: "cycles";
1207
+ find: (params?: Service.Cycle.Find.Params) => Promise<Service.Cycle.Find.Result>;
1208
+ get: (id: Service.Cycle.Get.ID, params?: Service.Cycle.Get.Params) => Promise<Service.Cycle.Get.Result>;
1209
+ };
1199
1210
  promotions: {
1200
1211
  _path: "promotions";
1201
1212
  find: (params?: Service.Promotion.Find.Params) => Promise<Service.Promotion.Find.Result>;
@@ -1393,4 +1404,18 @@ export default class Repzo {
1393
1404
  create: (params: Service.BulkImport.Create.Params, body: Service.BulkImport.Create.Body) => Promise<Service.BulkImport.Create.Result>;
1394
1405
  update: (id: Service.BulkImport.Update.ID) => Promise<Service.BulkImport.Update.Result>;
1395
1406
  };
1407
+ deliveryNote: {
1408
+ _path: "delivery-note";
1409
+ find: (params?: Service.DeliveryNote.Find.Params) => Promise<Service.DeliveryNote.Find.Result>;
1410
+ get: (id: Service.DeliveryNote.Get.ID, params?: Service.DeliveryNote.Get.Params) => Promise<Service.DeliveryNote.Get.Result>;
1411
+ create: (body: Service.DeliveryNote.Create.Body) => Promise<Service.DeliveryNote.Create.Result>;
1412
+ update: (id: Service.DeliveryNote.Update.ID, body: Service.DeliveryNote.Update.Body) => Promise<Service.DeliveryNote.Update.Result>;
1413
+ };
1414
+ reservation: {
1415
+ _path: "reservation";
1416
+ find: (params?: Service.Reservation.Find.Params) => Promise<Service.Reservation.Find.Result>;
1417
+ get: (id: Service.Reservation.Get.ID, params?: Service.Reservation.Get.Params) => Promise<Service.Reservation.Get.Result>;
1418
+ create: (body: Service.Reservation.Create.Body) => Promise<Service.Reservation.Create.Result>;
1419
+ update: (id: Service.Reservation.Update.ID, body: Service.Reservation.Update.Body) => Promise<Service.Reservation.Update.Result>;
1420
+ };
1396
1421
  }
package/lib/index.js CHANGED
@@ -13,6 +13,7 @@ export const end_points = {
13
13
  MEASUREUNIT: "measureunits",
14
14
  MEASUREUNIT_FAMILY: "measureunit-family",
15
15
  MEDIA: "media",
16
+ CYCLES: "cycles",
16
17
  PRICELIST: "pricelists",
17
18
  PRICELIST_ITEM: "pricelistsitems",
18
19
  TEAM: "teams",
@@ -144,6 +145,8 @@ export const end_points = {
144
145
  CALENDAR: "calendar",
145
146
  LINE_TARGET: "line-target",
146
147
  BULK_IMPORT: "bulk-import",
148
+ DELIVERY_NOTE: "delivery-note",
149
+ RESERVATION: "reservation",
147
150
  };
148
151
  export const availableService = [
149
152
  "client",
@@ -2387,6 +2390,16 @@ class Repzo {
2387
2390
  return res;
2388
2391
  },
2389
2392
  };
2393
+ this.cycle = {
2394
+ _path: Repzo._end_points.CYCLES,
2395
+ find: async (params) => {
2396
+ let res = await this._fetch(this.svAPIEndpoint, this.cycle._path, params);
2397
+ return res;
2398
+ },
2399
+ get: async (id, params) => {
2400
+ return await this._fetch(this.svAPIEndpoint, this.cycle._path + `/${id}`, params);
2401
+ },
2402
+ };
2390
2403
  this.promotions = {
2391
2404
  _path: Repzo._end_points.PROMOTIONS,
2392
2405
  find: async (params) => {
@@ -2910,6 +2923,42 @@ class Repzo {
2910
2923
  return res;
2911
2924
  },
2912
2925
  };
2926
+ this.deliveryNote = {
2927
+ _path: Repzo._end_points.DELIVERY_NOTE,
2928
+ find: async (params) => {
2929
+ let res = await this._fetch(this.svAPIEndpoint, this.deliveryNote._path, params);
2930
+ return res;
2931
+ },
2932
+ get: async (id, params) => {
2933
+ return await this._fetch(this.svAPIEndpoint, this.deliveryNote._path + `/${id}`, params);
2934
+ },
2935
+ create: async (body) => {
2936
+ let res = await this._create(this.svAPIEndpoint, this.deliveryNote._path, body);
2937
+ return res;
2938
+ },
2939
+ update: async (id, body) => {
2940
+ let res = await this._update(this.svAPIEndpoint, this.deliveryNote._path + `/${id}`, body);
2941
+ return res;
2942
+ },
2943
+ };
2944
+ this.reservation = {
2945
+ _path: Repzo._end_points.RESERVATION,
2946
+ find: async (params) => {
2947
+ let res = await this._fetch(this.svAPIEndpoint, this.reservation._path, params);
2948
+ return res;
2949
+ },
2950
+ get: async (id, params) => {
2951
+ return await this._fetch(this.svAPIEndpoint, this.reservation._path + `/${id}`, params);
2952
+ },
2953
+ create: async (body) => {
2954
+ let res = await this._create(this.svAPIEndpoint, this.reservation._path, body);
2955
+ return res;
2956
+ },
2957
+ update: async (id, body) => {
2958
+ let res = await this._update(this.svAPIEndpoint, this.reservation._path + `/${id}`, body);
2959
+ return res;
2960
+ },
2961
+ };
2913
2962
  this.svAPIEndpoint =
2914
2963
  !options?.env || options?.env == "production"
2915
2964
  ? "https://sv.api.repzo.me"