repzo 1.0.173 → 1.0.174

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
@@ -97,9 +97,9 @@ export declare const end_points: {
97
97
  readonly MODULE_CUSTOM_VALIDATOR: "module-custom-validator";
98
98
  readonly NOTIFICATIONS_CENTER: "notifications-center";
99
99
  };
100
- export type EndPoints = (typeof end_points)[keyof typeof end_points];
100
+ export type EndPoints = typeof end_points[keyof typeof end_points];
101
101
  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", "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"];
102
- export type AvailableService = (typeof availableService)[number];
102
+ export type AvailableService = typeof availableService[number];
103
103
  export default class Repzo {
104
104
  private svAPIEndpoint;
105
105
  headers: Headers;
@@ -968,5 +968,6 @@ export default class Repzo {
968
968
  get: (id: Service.NotificationsCenter.Get.ID, params?: Service.NotificationsCenter.Get.Params) => Promise<Service.NotificationsCenter.Get.Result>;
969
969
  create: (body: Service.NotificationsCenter.Create.Body) => Promise<Service.NotificationsCenter.Create.Result>;
970
970
  update: (id: Service.NotificationsCenter.Update.ID, body: Service.NotificationsCenter.Update.Body) => Promise<Service.NotificationsCenter.Update.Result>;
971
+ patch: (body: Service.NotificationsCenter.Patch.Body) => Promise<Service.NotificationsCenter.Patch.Result>;
971
972
  };
972
973
  }
package/lib/index.js CHANGED
@@ -1983,6 +1983,10 @@ class Repzo {
1983
1983
  let res = await this._update(this.svAPIEndpoint, this.notificationsCenter._path + `/${id}`, body);
1984
1984
  return res;
1985
1985
  },
1986
+ patch: async (body) => {
1987
+ let res = await this._patch(this.svAPIEndpoint, this.notificationsCenter._path, body);
1988
+ return res;
1989
+ },
1986
1990
  };
1987
1991
  this.svAPIEndpoint =
1988
1992
  !options?.env || options?.env == "production"
@@ -14063,7 +14063,7 @@ export declare namespace Service {
14063
14063
  }[];
14064
14064
  }
14065
14065
  export const fieldType_enums: readonly ["Text", "String", "Phone", "Email", "Date", "Number", "List", "Separator", "Heading", "Media", "Signature", "DateTime", "YesNo", "ProductBarcodeScan", "BarcodeScan", "GeoPoint"];
14066
- export type FormV2FieldType = (typeof fieldType_enums)[number];
14066
+ export type FormV2FieldType = typeof fieldType_enums[number];
14067
14067
  interface FieldPrintSettings {
14068
14068
  three_inch: {
14069
14069
  grid_column?: 1 | 2;
@@ -14205,7 +14205,7 @@ export declare namespace Service {
14205
14205
  }
14206
14206
  namespace ActivityFormV2Result {
14207
14207
  const fieldType_enums: readonly ["Text", "String", "Phone", "Email", "Date", "Number", "List", "Separator", "Heading", "Media", "Signature", "DateTime", "YesNo", "ProductBarcodeScan", "BarcodeScan", "GeoPoint"];
14208
- type FormV2FieldType = (typeof fieldType_enums)[number];
14208
+ type FormV2FieldType = typeof fieldType_enums[number];
14209
14209
  interface FieldResult {
14210
14210
  _id?: string;
14211
14211
  field_id: string;
@@ -14480,7 +14480,7 @@ export declare namespace Service {
14480
14480
  }
14481
14481
  namespace TimelineReport {
14482
14482
  export const activity_types: readonly ["day", "client", "visit", "payment", "activity-photo", "activity-audit", "activity-availability", "activity-checkout-display", "activity-feedback", "activity-form-result", "activity-form-v2-result", "activity-item-status", "activity-note", "activity-planogram", "activity-secondary-display", "activity-shelfshare", "activity-storecheck", "activity-task", "approval-request", "asset-part-receival", "asset-part-transfer", "asset", "asset-part", "asset-unit", "reminders", "return-asset-part-unit", "store-asset-part-unit", "refund", "settlement", "convert-proforma", "transfer", "proforma", "receiving-material", "void-invoice", "fullinvoices", "workorder", "workorder-request", "return-whole-invoice", "cycle"];
14483
- type ActivityType = (typeof activity_types)[number];
14483
+ type ActivityType = typeof activity_types[number];
14484
14484
  export interface Data {
14485
14485
  _id: StringId;
14486
14486
  company_namespace: string[];
@@ -15183,7 +15183,7 @@ export declare namespace Service {
15183
15183
  }
15184
15184
  namespace TimelineTimeList {
15185
15185
  export const activity_types: readonly ["day", "client", "visit", "payment", "activity-photo", "activity-audit", "activity-availability", "activity-checkout-display", "activity-feedback", "activity-form-result", "activity-form-v2-result", "activity-item-status", "activity-note", "activity-planogram", "activity-secondary-display", "activity-shelfshare", "activity-storecheck", "activity-task", "approval-request", "asset-part-receival", "asset-part-transfer", "asset", "asset-part", "asset-unit", "reminders", "return-asset-part-unit", "store-asset-part-unit", "refund", "settlement", "convert-proforma", "transfer", "proforma", "receiving-material", "void-invoice", "fullinvoices", "workorder", "workorder-request", "return-whole-invoice", "cycle"];
15186
- type ActivityType = (typeof activity_types)[number];
15186
+ type ActivityType = typeof activity_types[number];
15187
15187
  export interface Data {
15188
15188
  _id: StringId;
15189
15189
  company_namespace: string[];
@@ -15929,6 +15929,10 @@ export declare namespace Service {
15929
15929
  createdAt?: Date;
15930
15930
  updatedAt?: Date;
15931
15931
  }
15932
+ export interface PatchBody {
15933
+ executed: boolean;
15934
+ command: Data["command"] | Data["command"][];
15935
+ }
15932
15936
  type PopulatedKeys = "media";
15933
15937
  export namespace Find {
15934
15938
  type Params = DefaultPaginationQueryParams & {
@@ -15959,6 +15963,13 @@ export declare namespace Service {
15959
15963
  type Body = UpdateBody;
15960
15964
  type Result = Data;
15961
15965
  }
15966
+ export namespace Patch {
15967
+ type Body = PatchBody;
15968
+ interface Result {
15969
+ status: "success";
15970
+ message: "0 updated ";
15971
+ }
15972
+ }
15962
15973
  export {};
15963
15974
  }
15964
15975
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repzo",
3
- "version": "1.0.173",
3
+ "version": "1.0.174",
4
4
  "description": "Repzo TypeScript SDK",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
package/src/index.ts CHANGED
@@ -5057,6 +5057,16 @@ export default class Repzo {
5057
5057
  );
5058
5058
  return res;
5059
5059
  },
5060
+ patch: async (
5061
+ body: Service.NotificationsCenter.Patch.Body,
5062
+ ): Promise<Service.NotificationsCenter.Patch.Result> => {
5063
+ let res: Service.NotificationsCenter.Patch.Result = await this._patch(
5064
+ this.svAPIEndpoint,
5065
+ this.notificationsCenter._path,
5066
+ body,
5067
+ );
5068
+ return res;
5069
+ },
5060
5070
  };
5061
5071
  }
5062
5072
 
@@ -17962,6 +17962,10 @@ export namespace Service {
17962
17962
  createdAt?: Date;
17963
17963
  updatedAt?: Date;
17964
17964
  }
17965
+ export interface PatchBody {
17966
+ executed: boolean;
17967
+ command: Data["command"] | Data["command"][];
17968
+ }
17965
17969
 
17966
17970
  type PopulatedKeys = "media";
17967
17971
 
@@ -17994,6 +17998,13 @@ export namespace Service {
17994
17998
  export type Body = UpdateBody;
17995
17999
  export type Result = Data;
17996
18000
  }
18001
+ export namespace Patch {
18002
+ export type Body = PatchBody;
18003
+ export interface Result {
18004
+ status: "success";
18005
+ message: "0 updated ";
18006
+ }
18007
+ }
17997
18008
  }
17998
18009
  }
17999
18010