repzo 1.0.73 → 1.0.74

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
@@ -539,6 +539,25 @@ export default class Repzo {
539
539
  id: Service.CustomListItem.Remove.ID
540
540
  ) => Promise<Service.CustomListItem.Remove.Result>;
541
541
  };
542
+ inventoryAdjustmentReason: {
543
+ _path: string;
544
+ find: (
545
+ params?: Service.InventoryAdjustmentReason.Find.Params
546
+ ) => Promise<Service.InventoryAdjustmentReason.Find.Result>;
547
+ get: (
548
+ id: Service.InventoryAdjustmentReason.Get.ID
549
+ ) => Promise<Service.InventoryAdjustmentReason.Get.Result>;
550
+ create: (
551
+ body: Service.InventoryAdjustmentReason.Create.Body
552
+ ) => Promise<Service.InventoryAdjustmentReason.Create.Result>;
553
+ update: (
554
+ id: Service.InventoryAdjustmentReason.Update.ID,
555
+ body: Service.InventoryAdjustmentReason.Update.Body
556
+ ) => Promise<Service.InventoryAdjustmentReason.Update.Result>;
557
+ remove: (
558
+ id: Service.InventoryAdjustmentReason.Remove.ID
559
+ ) => Promise<Service.InventoryAdjustmentReason.Remove.Result>;
560
+ };
542
561
  workorder: {
543
562
  _path: string;
544
563
  find: (
package/lib/index.js CHANGED
@@ -1117,6 +1117,46 @@ export default class Repzo {
1117
1117
  return res;
1118
1118
  },
1119
1119
  };
1120
+ this.inventoryAdjustmentReason = {
1121
+ _path: "/inventory-adjustment-reason",
1122
+ find: async (params) => {
1123
+ let res = await this._fetch(
1124
+ this.svAPIEndpoint,
1125
+ this.inventoryAdjustmentReason._path,
1126
+ params
1127
+ );
1128
+ return res;
1129
+ },
1130
+ get: async (id) => {
1131
+ return await this._fetch(
1132
+ this.svAPIEndpoint,
1133
+ this.inventoryAdjustmentReason._path + `/${id}`
1134
+ );
1135
+ },
1136
+ create: async (body) => {
1137
+ let res = await this._create(
1138
+ this.svAPIEndpoint,
1139
+ this.inventoryAdjustmentReason._path,
1140
+ body
1141
+ );
1142
+ return res;
1143
+ },
1144
+ update: async (id, body) => {
1145
+ let res = await this._update(
1146
+ this.svAPIEndpoint,
1147
+ this.customListItem._path + `/${id}`,
1148
+ body
1149
+ );
1150
+ return res;
1151
+ },
1152
+ remove: async (id) => {
1153
+ let res = await this._delete(
1154
+ this.svAPIEndpoint,
1155
+ this.inventoryAdjustmentReason._path + `/${id}`
1156
+ );
1157
+ return res;
1158
+ },
1159
+ };
1120
1160
  this.workorder = {
1121
1161
  _path: "/workorder",
1122
1162
  find: async (params) => {
@@ -7162,6 +7162,7 @@ export declare namespace Service {
7162
7162
  variants: VariantOfAdjustInventory[];
7163
7163
  teams?: string[];
7164
7164
  sync_id: string;
7165
+ reason?: string;
7165
7166
  company_namespace: string[];
7166
7167
  createdAt: string;
7167
7168
  updatedAt: string;
@@ -7180,6 +7181,10 @@ export declare namespace Service {
7180
7181
  type FindResult = Schema & {
7181
7182
  from: string | Warehouse.WarehouseSchema;
7182
7183
  to: string | Warehouse.WarehouseSchema;
7184
+ teams: string[] | Team.TeamSchema[];
7185
+ reason:
7186
+ | string
7187
+ | InventoryAdjustmentReason.InventoryAdjustmentReasonSchema;
7183
7188
  variants: (VariantOfAdjustInventory & {
7184
7189
  variant:
7185
7190
  | string
@@ -7207,7 +7212,7 @@ export declare namespace Service {
7207
7212
  };
7208
7213
  })[];
7209
7214
  };
7210
- type PopulatedKeys = "warehouse" | "variant";
7215
+ type PopulatedKeys = "warehouse" | "variant" | "teams" | "reason";
7211
7216
  export namespace Find {
7212
7217
  type Params = DefaultPaginationQueryParams & {
7213
7218
  _id?: string[] | string;
@@ -7218,6 +7223,7 @@ export declare namespace Service {
7218
7223
  from?: string[] | string;
7219
7224
  from_createdAt?: number;
7220
7225
  to_createdAt?: number;
7226
+ from_updatedAt?: number;
7221
7227
  creator?: string[] | string;
7222
7228
  populatedKeys?: PopulatedKeys[];
7223
7229
  };
@@ -7246,6 +7252,68 @@ export declare namespace Service {
7246
7252
  }
7247
7253
  export {};
7248
7254
  }
7255
+ namespace InventoryAdjustmentReason {
7256
+ interface InventoryAdjustmentReasonSchema {
7257
+ _id: string;
7258
+ name: string;
7259
+ local_name?: string;
7260
+ disabled: boolean;
7261
+ integration_meta?: {
7262
+ [key: string]: any;
7263
+ };
7264
+ company_namespace: string[];
7265
+ createdAt: string;
7266
+ updatedAt: string;
7267
+ }
7268
+ interface CreateBody {
7269
+ name: string;
7270
+ local_name?: string;
7271
+ disabled: boolean;
7272
+ integration_meta?: {
7273
+ [key: string]: any;
7274
+ };
7275
+ company_namespace: string[];
7276
+ }
7277
+ interface UpdateBody {
7278
+ _id?: string;
7279
+ name?: string;
7280
+ local_name?: string;
7281
+ disabled?: boolean;
7282
+ integration_meta?: {
7283
+ [key: string]: any;
7284
+ };
7285
+ company_namespace?: string[];
7286
+ }
7287
+ namespace Find {
7288
+ type Params = DefaultPaginationQueryParams & {
7289
+ _id?: string[] | string;
7290
+ name?: string;
7291
+ from_updatedAt?: number;
7292
+ [key: string]: any;
7293
+ };
7294
+ interface Result extends DefaultPaginationResult {
7295
+ data: InventoryAdjustmentReasonSchema[];
7296
+ }
7297
+ }
7298
+ namespace Get {
7299
+ type ID = string;
7300
+ interface Params {}
7301
+ type Result = InventoryAdjustmentReasonSchema;
7302
+ }
7303
+ namespace Create {
7304
+ type Body = CreateBody;
7305
+ type Result = InventoryAdjustmentReasonSchema;
7306
+ }
7307
+ namespace Update {
7308
+ type ID = string;
7309
+ type Body = UpdateBody;
7310
+ type Result = InventoryAdjustmentReasonSchema;
7311
+ }
7312
+ namespace Remove {
7313
+ type ID = string;
7314
+ type Result = InventoryAdjustmentReasonSchema;
7315
+ }
7316
+ }
7249
7317
  namespace Inventory {
7250
7318
  interface InventorySchema {
7251
7319
  _id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repzo",
3
- "version": "1.0.73",
3
+ "version": "1.0.74",
4
4
  "description": "Repzo TypeScript SDK",
5
5
  "main": "./lib/index.js",
6
6
  "type": "module",
package/src/index.ts CHANGED
@@ -1612,6 +1612,60 @@ export default class Repzo {
1612
1612
  },
1613
1613
  };
1614
1614
 
1615
+ inventoryAdjustmentReason = {
1616
+ _path: "/inventory-adjustment-reason",
1617
+ find: async (
1618
+ params?: Service.InventoryAdjustmentReason.Find.Params
1619
+ ): Promise<Service.InventoryAdjustmentReason.Find.Result> => {
1620
+ let res: Service.InventoryAdjustmentReason.Find.Result = await this._fetch(
1621
+ this.svAPIEndpoint,
1622
+ this.inventoryAdjustmentReason._path,
1623
+ params
1624
+ );
1625
+ return res;
1626
+ },
1627
+
1628
+ get: async (
1629
+ id: Service.InventoryAdjustmentReason.Get.ID
1630
+ ): Promise<Service.InventoryAdjustmentReason.Get.Result> => {
1631
+ return await this._fetch(
1632
+ this.svAPIEndpoint,
1633
+ this.inventoryAdjustmentReason._path + `/${id}`
1634
+ );
1635
+ },
1636
+
1637
+ create: async (
1638
+ body: Service.InventoryAdjustmentReason.Create.Body
1639
+ ): Promise<Service.InventoryAdjustmentReason.Create.Result> => {
1640
+ let res = await this._create(
1641
+ this.svAPIEndpoint,
1642
+ this.inventoryAdjustmentReason._path,
1643
+ body
1644
+ );
1645
+ return res;
1646
+ },
1647
+ update: async (
1648
+ id: Service.InventoryAdjustmentReason.Update.ID,
1649
+ body: Service.InventoryAdjustmentReason.Update.Body
1650
+ ): Promise<Service.InventoryAdjustmentReason.Update.Result> => {
1651
+ let res: Service.InventoryAdjustmentReason.Update.Result = await this._update(
1652
+ this.svAPIEndpoint,
1653
+ this.customListItem._path + `/${id}`,
1654
+ body
1655
+ );
1656
+ return res;
1657
+ },
1658
+ remove: async (
1659
+ id: Service.InventoryAdjustmentReason.Remove.ID
1660
+ ): Promise<Service.InventoryAdjustmentReason.Remove.Result> => {
1661
+ let res: Service.InventoryAdjustmentReason.Remove.Result = await this._delete(
1662
+ this.svAPIEndpoint,
1663
+ this.inventoryAdjustmentReason._path + `/${id}`
1664
+ );
1665
+ return res;
1666
+ },
1667
+ };
1668
+
1615
1669
  workorder = {
1616
1670
  _path: "/workorder",
1617
1671
  find: async (
@@ -7162,6 +7162,7 @@ export namespace Service {
7162
7162
  variants: VariantOfAdjustInventory[];
7163
7163
  teams?: string[];
7164
7164
  sync_id: string;
7165
+ reason?: string;
7165
7166
  company_namespace: string[];
7166
7167
  createdAt: string;
7167
7168
  updatedAt: string;
@@ -7181,6 +7182,10 @@ export namespace Service {
7181
7182
  type FindResult = Schema & {
7182
7183
  from: string | Warehouse.WarehouseSchema;
7183
7184
  to: string | Warehouse.WarehouseSchema;
7185
+ teams: string[] | Team.TeamSchema[];
7186
+ reason:
7187
+ | string
7188
+ | InventoryAdjustmentReason.InventoryAdjustmentReasonSchema;
7184
7189
  variants: (VariantOfAdjustInventory & {
7185
7190
  variant:
7186
7191
  | string
@@ -7209,7 +7214,7 @@ export namespace Service {
7209
7214
  })[];
7210
7215
  };
7211
7216
 
7212
- type PopulatedKeys = "warehouse" | "variant";
7217
+ type PopulatedKeys = "warehouse" | "variant" | "teams" | "reason";
7213
7218
  export namespace Find {
7214
7219
  export type Params = DefaultPaginationQueryParams & {
7215
7220
  _id?: string[] | string;
@@ -7220,6 +7225,7 @@ export namespace Service {
7220
7225
  from?: string[] | string;
7221
7226
  from_createdAt?: number;
7222
7227
  to_createdAt?: number;
7228
+ from_updatedAt?: number;
7223
7229
  creator?: string[] | string;
7224
7230
  populatedKeys?: PopulatedKeys[];
7225
7231
  };
@@ -7250,6 +7256,63 @@ export namespace Service {
7250
7256
  }
7251
7257
  }
7252
7258
 
7259
+ export namespace InventoryAdjustmentReason {
7260
+ export interface InventoryAdjustmentReasonSchema {
7261
+ _id: string;
7262
+ name: string;
7263
+ local_name?: string;
7264
+ disabled: boolean;
7265
+ integration_meta?: { [key: string]: any };
7266
+ company_namespace: string[];
7267
+ createdAt: string;
7268
+ updatedAt: string;
7269
+ }
7270
+ export interface CreateBody {
7271
+ name: string;
7272
+ local_name?: string;
7273
+ disabled: boolean;
7274
+ integration_meta?: { [key: string]: any };
7275
+ company_namespace: string[];
7276
+ }
7277
+ export interface UpdateBody {
7278
+ _id?: string;
7279
+ name?: string;
7280
+ local_name?: string;
7281
+ disabled?: boolean;
7282
+ integration_meta?: { [key: string]: any };
7283
+ company_namespace?: string[];
7284
+ }
7285
+ export namespace Find {
7286
+ export type Params = DefaultPaginationQueryParams & {
7287
+ _id?: string[] | string;
7288
+ name?: string;
7289
+ from_updatedAt?: number;
7290
+ [key: string]: any; // integration_meta.
7291
+ };
7292
+ export interface Result extends DefaultPaginationResult {
7293
+ data: InventoryAdjustmentReasonSchema[];
7294
+ }
7295
+ }
7296
+
7297
+ export namespace Get {
7298
+ export type ID = string;
7299
+ export interface Params {}
7300
+ export type Result = InventoryAdjustmentReasonSchema;
7301
+ }
7302
+ export namespace Create {
7303
+ export type Body = CreateBody;
7304
+ export type Result = InventoryAdjustmentReasonSchema;
7305
+ }
7306
+ export namespace Update {
7307
+ export type ID = string;
7308
+ export type Body = UpdateBody;
7309
+ export type Result = InventoryAdjustmentReasonSchema;
7310
+ }
7311
+ export namespace Remove {
7312
+ export type ID = string;
7313
+ export type Result = InventoryAdjustmentReasonSchema;
7314
+ }
7315
+ }
7253
7316
  export namespace Inventory {
7254
7317
  export interface InventorySchema {
7255
7318
  _id: string;