repzo 1.0.99 → 1.0.101

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.
@@ -8305,6 +8305,7 @@ export declare namespace Service {
8305
8305
  | "returned"
8306
8306
  | "stored";
8307
8307
  asset_part_receival: StringId;
8308
+ asset_part_return?: StringId;
8308
8309
  asset_part_index: number;
8309
8310
  splitted_from?: StringId;
8310
8311
  client: StringId;
@@ -8351,6 +8352,7 @@ export declare namespace Service {
8351
8352
  | "returned"
8352
8353
  | "stored";
8353
8354
  asset_part_receival: StringId | AssetPartReceival.Data;
8355
+ asset_part_return?: StringId | ReturnAssetPartUnit.Data;
8354
8356
  asset_part_index: number;
8355
8357
  splitted_from?: StringId | Data;
8356
8358
  client:
@@ -8472,6 +8474,7 @@ export declare namespace Service {
8472
8474
  }
8473
8475
  type PopulatedKeys =
8474
8476
  | "asset_part_receival"
8477
+ | "asset_part_return"
8475
8478
  | "asset_part"
8476
8479
  | "client"
8477
8480
  | "warehouse"
@@ -8482,6 +8485,7 @@ export declare namespace Service {
8482
8485
  type Params = DefaultPaginationQueryParams & {
8483
8486
  _id?: StringId[] | StringId;
8484
8487
  asset_part_receival?: StringId[] | StringId;
8488
+ asset_part_return?: StringId[] | StringId;
8485
8489
  client?: StringId[] | StringId;
8486
8490
  warehouse?: StringId[] | StringId;
8487
8491
  receival_warehouse?: StringId[] | StringId;
@@ -8767,6 +8771,7 @@ export declare namespace Service {
8767
8771
  | "failed";
8768
8772
  sync_id: string;
8769
8773
  asset_part_units: {
8774
+ _id: StringId;
8770
8775
  asset_part_unit: StringId;
8771
8776
  qty: number;
8772
8777
  asset_part?: StringId;
@@ -8819,6 +8824,7 @@ export declare namespace Service {
8819
8824
  | "failed";
8820
8825
  sync_id: string;
8821
8826
  asset_part_units: {
8827
+ _id: StringId;
8822
8828
  asset_part_unit:
8823
8829
  | StringId
8824
8830
  | (AssetPartUnit.Data & {
@@ -8860,7 +8866,7 @@ export declare namespace Service {
8860
8866
  }
8861
8867
  export interface CreateBody {
8862
8868
  creator?: AdminOrRep;
8863
- serial_number: SerialNumber;
8869
+ serial_number?: SerialNumber;
8864
8870
  type: "load" | "unload";
8865
8871
  from: StringId;
8866
8872
  to: StringId;
@@ -8871,6 +8877,7 @@ export declare namespace Service {
8871
8877
  status?: "pending";
8872
8878
  sync_id: string;
8873
8879
  asset_part_units: {
8880
+ _id?: StringId;
8874
8881
  asset_part_unit: StringId;
8875
8882
  qty: number;
8876
8883
  asset_part?: StringId;
@@ -8915,6 +8922,7 @@ export declare namespace Service {
8915
8922
  | "failed";
8916
8923
  sync_id?: string;
8917
8924
  asset_part_units?: {
8925
+ _id?: StringId;
8918
8926
  asset_part_unit: StringId;
8919
8927
  qty: number;
8920
8928
  asset_part_name?: string;
@@ -10281,12 +10289,12 @@ export declare namespace Service {
10281
10289
  doc_type?: string[] | string;
10282
10290
  };
10283
10291
  interface Result extends DefaultPaginationResult {
10284
- data: Data[] | PopulatedDoc[];
10292
+ data: Data[] & PopulatedDoc[];
10285
10293
  }
10286
10294
  }
10287
10295
  namespace Get {
10288
10296
  type ID = string;
10289
- type Result = Data | PopulatedDoc;
10297
+ type Result = Data & PopulatedDoc;
10290
10298
  }
10291
10299
  namespace Create {
10292
10300
  type Body = CreateBody;
@@ -10328,7 +10336,7 @@ export declare namespace Service {
10328
10336
  company_namespace: string[];
10329
10337
  disabled: boolean;
10330
10338
  template: StringId;
10331
- template_poplated: OcrInvoiceJobTemplate.Data;
10339
+ template_populated: OcrInvoiceJobTemplate.Data;
10332
10340
  client: StringId;
10333
10341
  client_populated: Pick<Client.ClientSchema, "name" | "_id">;
10334
10342
  doc_type: "pdf" | "image";
@@ -10376,12 +10384,12 @@ export declare namespace Service {
10376
10384
  search?: string;
10377
10385
  };
10378
10386
  interface Result extends DefaultPaginationResult {
10379
- data: Data[] | PopulatedDoc[];
10387
+ data: Data[] & PopulatedDoc[];
10380
10388
  }
10381
10389
  }
10382
10390
  namespace Get {
10383
10391
  type ID = string;
10384
- type Result = Data | PopulatedDoc;
10392
+ type Result = Data & PopulatedDoc;
10385
10393
  }
10386
10394
  namespace Create {
10387
10395
  type Body = CreateBody;
@@ -10537,12 +10545,12 @@ export declare namespace Service {
10537
10545
  job_group?: StringId[] | StringId;
10538
10546
  };
10539
10547
  interface Result extends DefaultPaginationResult {
10540
- data: Data[] | PopulatedDoc[];
10548
+ data: Data[] & PopulatedDoc[];
10541
10549
  }
10542
10550
  }
10543
10551
  export namespace Get {
10544
10552
  type ID = string;
10545
- type Result = Data | PopulatedDoc;
10553
+ type Result = Data & PopulatedDoc;
10546
10554
  }
10547
10555
  export {};
10548
10556
  }
@@ -10768,12 +10776,12 @@ export declare namespace Service {
10768
10776
  status: string | string[];
10769
10777
  };
10770
10778
  interface Result extends DefaultPaginationResult {
10771
- data: Data[] | PopulatedDoc[];
10779
+ data: Data[] & PopulatedDoc[];
10772
10780
  }
10773
10781
  }
10774
10782
  namespace Get {
10775
10783
  type ID = string;
10776
- type Result = Data | PopulatedDoc;
10784
+ type Result = Data & PopulatedDoc;
10777
10785
  }
10778
10786
  namespace Update {
10779
10787
  type ID = StringId;
@@ -10911,12 +10919,12 @@ export declare namespace Service {
10911
10919
  status: string | string[];
10912
10920
  };
10913
10921
  interface Result extends DefaultPaginationResult {
10914
- data: Data[] | PopulatedDoc[];
10922
+ data: Data[] & PopulatedDoc[];
10915
10923
  }
10916
10924
  }
10917
10925
  namespace Get {
10918
10926
  type ID = string;
10919
- type Result = Data | PopulatedDoc;
10927
+ type Result = Data & PopulatedDoc;
10920
10928
  }
10921
10929
  namespace Create {
10922
10930
  type Body = CreateBody;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repzo",
3
- "version": "1.0.99",
3
+ "version": "1.0.101",
4
4
  "description": "Repzo TypeScript SDK",
5
5
  "main": "./lib/index.js",
6
6
  "type": "module",
@@ -8238,6 +8238,7 @@ export namespace Service {
8238
8238
  | "returned"
8239
8239
  | "stored";
8240
8240
  asset_part_receival: StringId;
8241
+ asset_part_return?: StringId;
8241
8242
  asset_part_index: number;
8242
8243
  splitted_from?: StringId;
8243
8244
  client: StringId;
@@ -8282,6 +8283,7 @@ export namespace Service {
8282
8283
  | "returned"
8283
8284
  | "stored";
8284
8285
  asset_part_receival: StringId | AssetPartReceival.Data;
8286
+ asset_part_return?: StringId | ReturnAssetPartUnit.Data;
8285
8287
  asset_part_index: number;
8286
8288
  splitted_from?: StringId | Data;
8287
8289
  client:
@@ -8400,6 +8402,7 @@ export namespace Service {
8400
8402
 
8401
8403
  type PopulatedKeys =
8402
8404
  | "asset_part_receival"
8405
+ | "asset_part_return"
8403
8406
  | "asset_part"
8404
8407
  | "client"
8405
8408
  | "warehouse"
@@ -8411,6 +8414,7 @@ export namespace Service {
8411
8414
  export type Params = DefaultPaginationQueryParams & {
8412
8415
  _id?: StringId[] | StringId;
8413
8416
  asset_part_receival?: StringId[] | StringId;
8417
+ asset_part_return?: StringId[] | StringId;
8414
8418
  client?: StringId[] | StringId;
8415
8419
  warehouse?: StringId[] | StringId;
8416
8420
  receival_warehouse?: StringId[] | StringId;
@@ -8675,6 +8679,7 @@ export namespace Service {
8675
8679
  | "failed";
8676
8680
  sync_id: string;
8677
8681
  asset_part_units: {
8682
+ _id: StringId;
8678
8683
  asset_part_unit: StringId;
8679
8684
  qty: number;
8680
8685
  asset_part?: StringId;
@@ -8721,6 +8726,7 @@ export namespace Service {
8721
8726
  | "failed";
8722
8727
  sync_id: string;
8723
8728
  asset_part_units: {
8729
+ _id: StringId;
8724
8730
  asset_part_unit:
8725
8731
  | StringId
8726
8732
  | (AssetPartUnit.Data & {
@@ -8756,7 +8762,7 @@ export namespace Service {
8756
8762
  }
8757
8763
  export interface CreateBody {
8758
8764
  creator?: AdminOrRep;
8759
- serial_number: SerialNumber;
8765
+ serial_number?: SerialNumber;
8760
8766
  type: "load" | "unload";
8761
8767
  from: StringId;
8762
8768
  to: StringId;
@@ -8767,6 +8773,7 @@ export namespace Service {
8767
8773
  status?: "pending";
8768
8774
  sync_id: string;
8769
8775
  asset_part_units: {
8776
+ _id?: StringId;
8770
8777
  asset_part_unit: StringId;
8771
8778
  qty: number;
8772
8779
  asset_part?: StringId;
@@ -8805,6 +8812,7 @@ export namespace Service {
8805
8812
  | "failed";
8806
8813
  sync_id?: string;
8807
8814
  asset_part_units?: {
8815
+ _id?: StringId;
8808
8816
  asset_part_unit: StringId;
8809
8817
  qty: number;
8810
8818
  asset_part_name?: string;
@@ -10036,12 +10044,12 @@ export namespace Service {
10036
10044
  doc_type?: string[] | string;
10037
10045
  };
10038
10046
  export interface Result extends DefaultPaginationResult {
10039
- data: Data[] | PopulatedDoc[];
10047
+ data: Data[] & PopulatedDoc[];
10040
10048
  }
10041
10049
  }
10042
10050
  export namespace Get {
10043
10051
  export type ID = string;
10044
- export type Result = Data | PopulatedDoc;
10052
+ export type Result = Data & PopulatedDoc;
10045
10053
  }
10046
10054
  export namespace Create {
10047
10055
  export type Body = CreateBody;
@@ -10084,7 +10092,7 @@ export namespace Service {
10084
10092
  company_namespace: string[];
10085
10093
  disabled: boolean;
10086
10094
  template: StringId;
10087
- template_poplated: OcrInvoiceJobTemplate.Data;
10095
+ template_populated: OcrInvoiceJobTemplate.Data;
10088
10096
  client: StringId;
10089
10097
  client_populated: Pick<Client.ClientSchema, "name" | "_id">;
10090
10098
  doc_type: "pdf" | "image";
@@ -10133,12 +10141,12 @@ export namespace Service {
10133
10141
  search?: string;
10134
10142
  };
10135
10143
  export interface Result extends DefaultPaginationResult {
10136
- data: Data[] | PopulatedDoc[];
10144
+ data: Data[] & PopulatedDoc[];
10137
10145
  }
10138
10146
  }
10139
10147
  export namespace Get {
10140
10148
  export type ID = string;
10141
- export type Result = Data | PopulatedDoc;
10149
+ export type Result = Data & PopulatedDoc;
10142
10150
  }
10143
10151
  export namespace Create {
10144
10152
  export type Body = CreateBody;
@@ -10307,12 +10315,12 @@ export namespace Service {
10307
10315
  job_group?: StringId[] | StringId;
10308
10316
  };
10309
10317
  export interface Result extends DefaultPaginationResult {
10310
- data: Data[] | PopulatedDoc[];
10318
+ data: Data[] & PopulatedDoc[];
10311
10319
  }
10312
10320
  }
10313
10321
  export namespace Get {
10314
10322
  export type ID = string;
10315
- export type Result = Data | PopulatedDoc;
10323
+ export type Result = Data & PopulatedDoc;
10316
10324
  }
10317
10325
  }
10318
10326
 
@@ -10536,12 +10544,12 @@ export namespace Service {
10536
10544
  status: string | string[];
10537
10545
  };
10538
10546
  export interface Result extends DefaultPaginationResult {
10539
- data: Data[] | PopulatedDoc[];
10547
+ data: Data[] & PopulatedDoc[];
10540
10548
  }
10541
10549
  }
10542
10550
  export namespace Get {
10543
10551
  export type ID = string;
10544
- export type Result = Data | PopulatedDoc;
10552
+ export type Result = Data & PopulatedDoc;
10545
10553
  }
10546
10554
  export namespace Update {
10547
10555
  export type ID = StringId;
@@ -10680,12 +10688,12 @@ export namespace Service {
10680
10688
  status: string | string[];
10681
10689
  };
10682
10690
  export interface Result extends DefaultPaginationResult {
10683
- data: Data[] | PopulatedDoc[];
10691
+ data: Data[] & PopulatedDoc[];
10684
10692
  }
10685
10693
  }
10686
10694
  export namespace Get {
10687
10695
  export type ID = string;
10688
- export type Result = Data | PopulatedDoc;
10696
+ export type Result = Data & PopulatedDoc;
10689
10697
  }
10690
10698
 
10691
10699
  export namespace Create {