repzo 1.0.243 → 1.0.244

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
@@ -123,6 +123,7 @@ export declare const end_points: {
123
123
  readonly OPTIONAL_BUSINESS_APP_SERVICE: "optional-business-app-service";
124
124
  readonly PROMOTION_USAGE: "promotion-usage";
125
125
  readonly CART: "cart";
126
+ readonly LATEST_SERIAL: "latest-serial";
126
127
  };
127
128
  export type EndPoints = (typeof end_points)[keyof typeof end_points];
128
129
  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", "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"];
@@ -261,6 +262,7 @@ export default class Repzo {
261
262
  readonly OPTIONAL_BUSINESS_APP_SERVICE: "optional-business-app-service";
262
263
  readonly PROMOTION_USAGE: "promotion-usage";
263
264
  readonly CART: "cart";
265
+ readonly LATEST_SERIAL: "latest-serial";
264
266
  };
265
267
  private _retryRequest;
266
268
  private _fetch;
@@ -1208,4 +1210,8 @@ export default class Repzo {
1208
1210
  create: (body: Service.Cart.Create.Body) => Promise<Service.Cart.Create.Result>;
1209
1211
  remove: (id: Service.Cart.Remove.ID, params?: Service.Cart.Get.Params) => Promise<Service.Cart.Remove.Result>;
1210
1212
  };
1213
+ latestSerial: {
1214
+ _path: "latest-serial";
1215
+ find: (params?: Service.LatestSerial.Find.Params) => Promise<Service.LatestSerial.Find.Result>;
1216
+ };
1211
1217
  }
package/lib/index.js CHANGED
@@ -125,6 +125,7 @@ export const end_points = {
125
125
  OPTIONAL_BUSINESS_APP_SERVICE: "optional-business-app-service",
126
126
  PROMOTION_USAGE: "promotion-usage",
127
127
  CART: "cart",
128
+ LATEST_SERIAL: "latest-serial",
128
129
  };
129
130
  export const availableService = [
130
131
  "client",
@@ -2484,6 +2485,13 @@ class Repzo {
2484
2485
  return res;
2485
2486
  },
2486
2487
  };
2488
+ this.latestSerial = {
2489
+ _path: Repzo._end_points.LATEST_SERIAL,
2490
+ find: async (params) => {
2491
+ let res = await this._fetch(this.svAPIEndpoint, this.latestSerial._path, params);
2492
+ return res;
2493
+ },
2494
+ };
2487
2495
  this.svAPIEndpoint =
2488
2496
  !options?.env || options?.env == "production"
2489
2497
  ? "https://sv.api.repzo.me"
@@ -17699,6 +17699,28 @@ export declare namespace Service {
17699
17699
  }
17700
17700
  }
17701
17701
  }
17702
+ namespace LatestSerial {
17703
+ interface Data {
17704
+ refund: number;
17705
+ payment: number;
17706
+ transfer: number;
17707
+ proforma: number;
17708
+ returns: number;
17709
+ return_proforma: number;
17710
+ invoice: number;
17711
+ settlement: number;
17712
+ formResult: number;
17713
+ workorder: number;
17714
+ approval_request: number;
17715
+ }
17716
+ namespace Find {
17717
+ type Params = DefaultPaginationQueryParams & {
17718
+ repidentifier: number;
17719
+ [key: string]: any;
17720
+ };
17721
+ type Result = Data;
17722
+ }
17723
+ }
17702
17724
  }
17703
17725
  export type StringId = string;
17704
17726
  export type NameSpaces = string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repzo",
3
- "version": "1.0.243",
3
+ "version": "1.0.244",
4
4
  "description": "Repzo TypeScript SDK",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
package/src/index.ts CHANGED
@@ -135,6 +135,7 @@ export const end_points = {
135
135
  OPTIONAL_BUSINESS_APP_SERVICE: "optional-business-app-service",
136
136
  PROMOTION_USAGE: "promotion-usage",
137
137
  CART: "cart",
138
+ LATEST_SERIAL: "latest-serial",
138
139
  } as const;
139
140
  export type EndPoints = (typeof end_points)[keyof typeof end_points];
140
141
 
@@ -6274,6 +6275,20 @@ export default class Repzo {
6274
6275
  return res;
6275
6276
  },
6276
6277
  };
6278
+
6279
+ latestSerial = {
6280
+ _path: Repzo._end_points.LATEST_SERIAL,
6281
+ find: async (
6282
+ params?: Service.LatestSerial.Find.Params,
6283
+ ): Promise<Service.LatestSerial.Find.Result> => {
6284
+ let res: Service.LatestSerial.Find.Result = await this._fetch(
6285
+ this.svAPIEndpoint,
6286
+ this.latestSerial._path,
6287
+ params,
6288
+ );
6289
+ return res;
6290
+ },
6291
+ };
6277
6292
  }
6278
6293
 
6279
6294
  function normalizeParams(params: Params): { [key: string]: any } {
@@ -19771,6 +19771,29 @@ export namespace Service {
19771
19771
  }
19772
19772
  }
19773
19773
  }
19774
+
19775
+ export namespace LatestSerial {
19776
+ export interface Data {
19777
+ refund: number;
19778
+ payment: number;
19779
+ transfer: number;
19780
+ proforma: number;
19781
+ returns: number;
19782
+ return_proforma: number;
19783
+ invoice: number;
19784
+ settlement: number;
19785
+ formResult: number;
19786
+ workorder: number;
19787
+ approval_request: number;
19788
+ }
19789
+ export namespace Find {
19790
+ export type Params = DefaultPaginationQueryParams & {
19791
+ repidentifier: number;
19792
+ [key: string]: any;
19793
+ };
19794
+ export type Result = Data;
19795
+ }
19796
+ }
19774
19797
  }
19775
19798
 
19776
19799
  export type StringId = string;