repzo 1.0.243 → 1.0.245

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"
@@ -12069,6 +12069,8 @@ export declare namespace Service {
12069
12069
  local_currency_subunit?: string;
12070
12070
  currency_factor?: 100 | 1000;
12071
12071
  print_payment_allowance_period_in_days?: number;
12072
+ freshness_window_in_minutes: number;
12073
+ bypass_freshness_window_code: string;
12072
12074
  }
12073
12075
  interface WorkorderSettings {
12074
12076
  workorder_teams_follow_assigned_to?: boolean;
@@ -12169,7 +12171,6 @@ export declare namespace Service {
12169
12171
  round_discounted_price: boolean;
12170
12172
  enable_pull_remote_cart: boolean;
12171
12173
  enable_promotion_freshness_window: boolean;
12172
- promotion_freshness_window_in_minutes: number;
12173
12174
  };
12174
12175
  teams_shared_collections: string[];
12175
12176
  days_of_work: "Sunday" | "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday";
@@ -12354,9 +12355,8 @@ export declare namespace Service {
12354
12355
  manual_discounts_limit_value: number;
12355
12356
  promotions_enabled: boolean;
12356
12357
  round_discounted_price: boolean;
12357
- enable_pull_remote_cart: boolean;
12358
- enable_promotion_freshness_window: boolean;
12359
- promotion_freshness_window_in_minutes: number;
12358
+ enable_pull_remote_cart?: boolean;
12359
+ enable_promotion_freshness_window?: boolean;
12360
12360
  };
12361
12361
  teams_shared_collections?: string[];
12362
12362
  days_of_work?: "Sunday" | "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday";
@@ -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.245",
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 } {
@@ -12888,6 +12888,8 @@ export namespace Service {
12888
12888
  local_currency_subunit?: string;
12889
12889
  currency_factor?: 100 | 1000;
12890
12890
  print_payment_allowance_period_in_days?: number;
12891
+ freshness_window_in_minutes: number;
12892
+ bypass_freshness_window_code: string;
12891
12893
  }
12892
12894
 
12893
12895
  export interface WorkorderSettings {
@@ -12962,7 +12964,6 @@ export namespace Service {
12962
12964
  round_discounted_price: boolean;
12963
12965
  enable_pull_remote_cart: boolean;
12964
12966
  enable_promotion_freshness_window: boolean;
12965
- promotion_freshness_window_in_minutes: number;
12966
12967
  };
12967
12968
  teams_shared_collections: string[];
12968
12969
  days_of_work:
@@ -13120,9 +13121,8 @@ export namespace Service {
13120
13121
  manual_discounts_limit_value: number;
13121
13122
  promotions_enabled: boolean;
13122
13123
  round_discounted_price: boolean;
13123
- enable_pull_remote_cart: boolean;
13124
- enable_promotion_freshness_window: boolean;
13125
- promotion_freshness_window_in_minutes: number;
13124
+ enable_pull_remote_cart?: boolean;
13125
+ enable_promotion_freshness_window?: boolean;
13126
13126
  };
13127
13127
  teams_shared_collections?: string[];
13128
13128
  days_of_work?:
@@ -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;