repzo 1.0.149 → 1.0.150

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.
@@ -6114,8 +6114,8 @@ export declare namespace Service {
6114
6114
  proforma_reference?: string;
6115
6115
  converted_at?: number;
6116
6116
  exclude_return_items?: boolean;
6117
- returned_from?: string;
6118
- returned_to?: string;
6117
+ returned_from?: string | Pick<FullInvoice.InvoiceSchema, "_id" | "serial_number" | "advanced_serial_number">;
6118
+ returned_to?: string | FullInvoice.InvoiceSchema;
6119
6119
  returned_from_serial_number?: SerialNumber;
6120
6120
  returned_to_serial_number?: SerialNumber;
6121
6121
  is_void?: boolean;
@@ -6236,7 +6236,7 @@ export declare namespace Service {
6236
6236
  name?: string;
6237
6237
  ref?: string;
6238
6238
  }[];
6239
- partially_returned_from?: StringId;
6239
+ partially_returned_from?: StringId | Pick<FullInvoice.InvoiceSchema, "_id" | "serial_number" | "advanced_serial_number">;
6240
6240
  partially_returned_to?: StringId[];
6241
6241
  partially_returned_from_serial_number?: SerialNumber;
6242
6242
  partially_returned_to_serial_number?: SerialNumber[];
@@ -6284,7 +6284,7 @@ export declare namespace Service {
6284
6284
  lines_discount_float?: number;
6285
6285
  total_word?: string;
6286
6286
  total_local_word?: string;
6287
- workorder?: StringId;
6287
+ workorder?: StringId | Pick<Workorder.WorkorderSchema, "_id" | "serial_number" | "name" | "local_name">;
6288
6288
  asset?: StringId;
6289
6289
  asset_unit?: StringId;
6290
6290
  signature?: PopulatedMediaStorage;
@@ -6310,7 +6310,7 @@ export declare namespace Service {
6310
6310
  business_day?: string;
6311
6311
  };
6312
6312
  type InvoiceStatus = "paid" | "unpaid" | "partially_paid";
6313
- type PopulatedKeys = "client" | "tax_number" | "custom_status" | "return_reason" | "teams" | "warehouse" | "route";
6313
+ type PopulatedKeys = "client" | "tax_number" | "custom_status" | "return_reason" | "teams" | "warehouse" | "route" | "workorder" | "returned_from" | "partially_returned_from" | "returned_to";
6314
6314
  type SortingKeys = "line_total" | "product_name" | "variant_name" | "product_sku" | "product_barcode" | "variant_sku" | "variant_barcode";
6315
6315
  export namespace Find {
6316
6316
  type Params = DefaultPaginationQueryParams & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repzo",
3
- "version": "1.0.149",
3
+ "version": "1.0.150",
4
4
  "description": "Repzo TypeScript SDK",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -6624,8 +6624,13 @@ export namespace Service {
6624
6624
  proforma_reference?: string;
6625
6625
  converted_at?: number;
6626
6626
  exclude_return_items?: boolean;
6627
- returned_from?: string;
6628
- returned_to?: string;
6627
+ returned_from?:
6628
+ | string
6629
+ | Pick<
6630
+ FullInvoice.InvoiceSchema,
6631
+ "_id" | "serial_number" | "advanced_serial_number"
6632
+ >;
6633
+ returned_to?: string | FullInvoice.InvoiceSchema;
6629
6634
  returned_from_serial_number?: SerialNumber;
6630
6635
  returned_to_serial_number?: SerialNumber;
6631
6636
  is_void?: boolean;
@@ -6738,7 +6743,12 @@ export namespace Service {
6738
6743
  production_reporting_status?: boolean;
6739
6744
  skip_promos?: boolean;
6740
6745
  skipped_promotions?: { _id: StringId; name?: string; ref?: string }[];
6741
- partially_returned_from?: StringId;
6746
+ partially_returned_from?:
6747
+ | StringId
6748
+ | Pick<
6749
+ FullInvoice.InvoiceSchema,
6750
+ "_id" | "serial_number" | "advanced_serial_number"
6751
+ >;
6742
6752
  partially_returned_to?: StringId[];
6743
6753
  partially_returned_from_serial_number?: SerialNumber;
6744
6754
  partially_returned_to_serial_number?: SerialNumber[];
@@ -6786,7 +6796,12 @@ export namespace Service {
6786
6796
  lines_discount_float?: number;
6787
6797
  total_word?: string;
6788
6798
  total_local_word?: string;
6789
- workorder?: StringId;
6799
+ workorder?:
6800
+ | StringId
6801
+ | Pick<
6802
+ Workorder.WorkorderSchema,
6803
+ "_id" | "serial_number" | "name" | "local_name"
6804
+ >;
6790
6805
  asset?: StringId;
6791
6806
  asset_unit?: StringId;
6792
6807
  signature?: PopulatedMediaStorage;
@@ -6817,7 +6832,11 @@ export namespace Service {
6817
6832
  | "return_reason"
6818
6833
  | "teams"
6819
6834
  | "warehouse"
6820
- | "route";
6835
+ | "route"
6836
+ | "workorder"
6837
+ | "returned_from"
6838
+ | "partially_returned_from"
6839
+ | "returned_to";
6821
6840
  type SortingKeys =
6822
6841
  | "line_total"
6823
6842
  | "product_name"