repzo 1.0.73 → 1.0.75

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) => {
@@ -6832,6 +6832,11 @@ export declare namespace Service {
6832
6832
  teams?: string[];
6833
6833
  custom_status?: string;
6834
6834
  sync_id: string;
6835
+ transaction_processed: boolean;
6836
+ business_day?: string;
6837
+ comment?: string;
6838
+ document_type?: "transfer";
6839
+ process_time?: number;
6835
6840
  integration_meta?: {
6836
6841
  [key: string]: any;
6837
6842
  };
@@ -6911,8 +6916,9 @@ export declare namespace Service {
6911
6916
  };
6912
6917
  type FindResult = Schema & {
6913
6918
  custom_status?: string | CustomStatus.CustomStatusSchema;
6914
- from: Warehouse.WarehouseSchema;
6915
- to: Warehouse.WarehouseSchema;
6919
+ from: string | Warehouse.WarehouseSchema;
6920
+ to: string | Warehouse.WarehouseSchema;
6921
+ teams: string[] | Team.TeamSchema[];
6916
6922
  variants: {
6917
6923
  _id: string;
6918
6924
  variant_id: string;
@@ -6949,7 +6955,7 @@ export declare namespace Service {
6949
6955
  };
6950
6956
  };
6951
6957
  type TransferType = "load" | "unload";
6952
- type PopulatedKeys = "custom_status";
6958
+ type PopulatedKeys = "custom_status" | "teams";
6953
6959
  type TransferStatus =
6954
6960
  | "pending"
6955
6961
  | "approved"
@@ -6967,6 +6973,7 @@ export declare namespace Service {
6967
6973
  from?: string[] | string;
6968
6974
  from_createdAt?: number;
6969
6975
  to_createdAt?: number;
6976
+ from_updatedAt?: number;
6970
6977
  status?: TransferStatus | TransferStatus[];
6971
6978
  custom_status?: string[] | string;
6972
6979
  creator?: string[] | string;
@@ -7162,6 +7169,8 @@ export declare namespace Service {
7162
7169
  variants: VariantOfAdjustInventory[];
7163
7170
  teams?: string[];
7164
7171
  sync_id: string;
7172
+ reason?: string;
7173
+ transaction_processed: boolean;
7165
7174
  company_namespace: string[];
7166
7175
  createdAt: string;
7167
7176
  updatedAt: string;
@@ -7173,6 +7182,7 @@ export declare namespace Service {
7173
7182
  creator?: AdminCreator | RepCreator;
7174
7183
  to: string;
7175
7184
  variants: VariantOfAdjustInventory[];
7185
+ transaction_processed: boolean;
7176
7186
  teams?: string[];
7177
7187
  sync_id: string;
7178
7188
  company_namespace?: string[];
@@ -7180,6 +7190,10 @@ export declare namespace Service {
7180
7190
  type FindResult = Schema & {
7181
7191
  from: string | Warehouse.WarehouseSchema;
7182
7192
  to: string | Warehouse.WarehouseSchema;
7193
+ teams: string[] | Team.TeamSchema[];
7194
+ reason:
7195
+ | string
7196
+ | InventoryAdjustmentReason.InventoryAdjustmentReasonSchema;
7183
7197
  variants: (VariantOfAdjustInventory & {
7184
7198
  variant:
7185
7199
  | string
@@ -7207,7 +7221,7 @@ export declare namespace Service {
7207
7221
  };
7208
7222
  })[];
7209
7223
  };
7210
- type PopulatedKeys = "warehouse" | "variant";
7224
+ type PopulatedKeys = "warehouse" | "variant" | "teams" | "reason";
7211
7225
  export namespace Find {
7212
7226
  type Params = DefaultPaginationQueryParams & {
7213
7227
  _id?: string[] | string;
@@ -7218,6 +7232,7 @@ export declare namespace Service {
7218
7232
  from?: string[] | string;
7219
7233
  from_createdAt?: number;
7220
7234
  to_createdAt?: number;
7235
+ from_updatedAt?: number;
7221
7236
  creator?: string[] | string;
7222
7237
  populatedKeys?: PopulatedKeys[];
7223
7238
  };
@@ -7246,6 +7261,68 @@ export declare namespace Service {
7246
7261
  }
7247
7262
  export {};
7248
7263
  }
7264
+ namespace InventoryAdjustmentReason {
7265
+ interface InventoryAdjustmentReasonSchema {
7266
+ _id: string;
7267
+ name: string;
7268
+ local_name?: string;
7269
+ disabled: boolean;
7270
+ integration_meta?: {
7271
+ [key: string]: any;
7272
+ };
7273
+ company_namespace: string[];
7274
+ createdAt: string;
7275
+ updatedAt: string;
7276
+ }
7277
+ interface CreateBody {
7278
+ name: string;
7279
+ local_name?: string;
7280
+ disabled: boolean;
7281
+ integration_meta?: {
7282
+ [key: string]: any;
7283
+ };
7284
+ company_namespace: string[];
7285
+ }
7286
+ interface UpdateBody {
7287
+ _id?: string;
7288
+ name?: string;
7289
+ local_name?: string;
7290
+ disabled?: boolean;
7291
+ integration_meta?: {
7292
+ [key: string]: any;
7293
+ };
7294
+ company_namespace?: string[];
7295
+ }
7296
+ namespace Find {
7297
+ type Params = DefaultPaginationQueryParams & {
7298
+ _id?: string[] | string;
7299
+ name?: string;
7300
+ from_updatedAt?: number;
7301
+ [key: string]: any;
7302
+ };
7303
+ interface Result extends DefaultPaginationResult {
7304
+ data: InventoryAdjustmentReasonSchema[];
7305
+ }
7306
+ }
7307
+ namespace Get {
7308
+ type ID = string;
7309
+ interface Params {}
7310
+ type Result = InventoryAdjustmentReasonSchema;
7311
+ }
7312
+ namespace Create {
7313
+ type Body = CreateBody;
7314
+ type Result = InventoryAdjustmentReasonSchema;
7315
+ }
7316
+ namespace Update {
7317
+ type ID = string;
7318
+ type Body = UpdateBody;
7319
+ type Result = InventoryAdjustmentReasonSchema;
7320
+ }
7321
+ namespace Remove {
7322
+ type ID = string;
7323
+ type Result = InventoryAdjustmentReasonSchema;
7324
+ }
7325
+ }
7249
7326
  namespace Inventory {
7250
7327
  interface InventorySchema {
7251
7328
  _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.75",
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 (
@@ -6834,6 +6834,11 @@ export namespace Service {
6834
6834
  teams?: string[];
6835
6835
  custom_status?: string;
6836
6836
  sync_id: string;
6837
+ transaction_processed: boolean;
6838
+ business_day?: string;
6839
+ comment?: string;
6840
+ document_type?: "transfer";
6841
+ process_time?: number;
6837
6842
  integration_meta?: { [key: string]: any };
6838
6843
  company_namespace: string[];
6839
6844
  createdAt: string;
@@ -6906,8 +6911,9 @@ export namespace Service {
6906
6911
 
6907
6912
  type FindResult = Schema & {
6908
6913
  custom_status?: string | CustomStatus.CustomStatusSchema;
6909
- from: Warehouse.WarehouseSchema;
6910
- to: Warehouse.WarehouseSchema;
6914
+ from: string | Warehouse.WarehouseSchema;
6915
+ to: string | Warehouse.WarehouseSchema;
6916
+ teams: string[] | Team.TeamSchema[];
6911
6917
  variants: {
6912
6918
  _id: string;
6913
6919
  variant_id: string;
@@ -6944,7 +6950,7 @@ export namespace Service {
6944
6950
  };
6945
6951
  };
6946
6952
  type TransferType = "load" | "unload";
6947
- type PopulatedKeys = "custom_status";
6953
+ type PopulatedKeys = "custom_status" | "teams";
6948
6954
  type TransferStatus =
6949
6955
  | "pending"
6950
6956
  | "approved"
@@ -6962,6 +6968,7 @@ export namespace Service {
6962
6968
  from?: string[] | string;
6963
6969
  from_createdAt?: number;
6964
6970
  to_createdAt?: number;
6971
+ from_updatedAt?: number;
6965
6972
  status?: TransferStatus | TransferStatus[];
6966
6973
  custom_status?: string[] | string;
6967
6974
  creator?: string[] | string;
@@ -7162,6 +7169,8 @@ export namespace Service {
7162
7169
  variants: VariantOfAdjustInventory[];
7163
7170
  teams?: string[];
7164
7171
  sync_id: string;
7172
+ reason?: string;
7173
+ transaction_processed: boolean;
7165
7174
  company_namespace: string[];
7166
7175
  createdAt: string;
7167
7176
  updatedAt: string;
@@ -7173,6 +7182,7 @@ export namespace Service {
7173
7182
  creator?: AdminCreator | RepCreator;
7174
7183
  to: string;
7175
7184
  variants: VariantOfAdjustInventory[];
7185
+ transaction_processed: boolean;
7176
7186
  teams?: string[];
7177
7187
  sync_id: string;
7178
7188
  company_namespace?: string[];
@@ -7181,6 +7191,10 @@ export namespace Service {
7181
7191
  type FindResult = Schema & {
7182
7192
  from: string | Warehouse.WarehouseSchema;
7183
7193
  to: string | Warehouse.WarehouseSchema;
7194
+ teams: string[] | Team.TeamSchema[];
7195
+ reason:
7196
+ | string
7197
+ | InventoryAdjustmentReason.InventoryAdjustmentReasonSchema;
7184
7198
  variants: (VariantOfAdjustInventory & {
7185
7199
  variant:
7186
7200
  | string
@@ -7209,7 +7223,7 @@ export namespace Service {
7209
7223
  })[];
7210
7224
  };
7211
7225
 
7212
- type PopulatedKeys = "warehouse" | "variant";
7226
+ type PopulatedKeys = "warehouse" | "variant" | "teams" | "reason";
7213
7227
  export namespace Find {
7214
7228
  export type Params = DefaultPaginationQueryParams & {
7215
7229
  _id?: string[] | string;
@@ -7220,6 +7234,7 @@ export namespace Service {
7220
7234
  from?: string[] | string;
7221
7235
  from_createdAt?: number;
7222
7236
  to_createdAt?: number;
7237
+ from_updatedAt?: number;
7223
7238
  creator?: string[] | string;
7224
7239
  populatedKeys?: PopulatedKeys[];
7225
7240
  };
@@ -7250,6 +7265,63 @@ export namespace Service {
7250
7265
  }
7251
7266
  }
7252
7267
 
7268
+ export namespace InventoryAdjustmentReason {
7269
+ export interface InventoryAdjustmentReasonSchema {
7270
+ _id: string;
7271
+ name: string;
7272
+ local_name?: string;
7273
+ disabled: boolean;
7274
+ integration_meta?: { [key: string]: any };
7275
+ company_namespace: string[];
7276
+ createdAt: string;
7277
+ updatedAt: string;
7278
+ }
7279
+ export interface CreateBody {
7280
+ name: string;
7281
+ local_name?: string;
7282
+ disabled: boolean;
7283
+ integration_meta?: { [key: string]: any };
7284
+ company_namespace: string[];
7285
+ }
7286
+ export interface UpdateBody {
7287
+ _id?: string;
7288
+ name?: string;
7289
+ local_name?: string;
7290
+ disabled?: boolean;
7291
+ integration_meta?: { [key: string]: any };
7292
+ company_namespace?: string[];
7293
+ }
7294
+ export namespace Find {
7295
+ export type Params = DefaultPaginationQueryParams & {
7296
+ _id?: string[] | string;
7297
+ name?: string;
7298
+ from_updatedAt?: number;
7299
+ [key: string]: any; // integration_meta.
7300
+ };
7301
+ export interface Result extends DefaultPaginationResult {
7302
+ data: InventoryAdjustmentReasonSchema[];
7303
+ }
7304
+ }
7305
+
7306
+ export namespace Get {
7307
+ export type ID = string;
7308
+ export interface Params {}
7309
+ export type Result = InventoryAdjustmentReasonSchema;
7310
+ }
7311
+ export namespace Create {
7312
+ export type Body = CreateBody;
7313
+ export type Result = InventoryAdjustmentReasonSchema;
7314
+ }
7315
+ export namespace Update {
7316
+ export type ID = string;
7317
+ export type Body = UpdateBody;
7318
+ export type Result = InventoryAdjustmentReasonSchema;
7319
+ }
7320
+ export namespace Remove {
7321
+ export type ID = string;
7322
+ export type Result = InventoryAdjustmentReasonSchema;
7323
+ }
7324
+ }
7253
7325
  export namespace Inventory {
7254
7326
  export interface InventorySchema {
7255
7327
  _id: string;