repzo 1.0.98 → 1.0.99

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.
@@ -8128,7 +8128,7 @@ export declare namespace Service {
8128
8128
  }
8129
8129
  }
8130
8130
  namespace AssetPart {
8131
- interface Data {
8131
+ export interface Data {
8132
8132
  _id: StringId;
8133
8133
  creator: AdminOrRep;
8134
8134
  editor?: AdminOrRep;
@@ -8155,7 +8155,7 @@ export declare namespace Service {
8155
8155
  createdAt: Date;
8156
8156
  updatedAt: Date;
8157
8157
  }
8158
- interface PopulatedDoc {
8158
+ export interface PopulatedDoc {
8159
8159
  _id: StringId;
8160
8160
  creator: AdminOrRep;
8161
8161
  editor?: AdminOrRep;
@@ -8184,7 +8184,7 @@ export declare namespace Service {
8184
8184
  createdAt: Date;
8185
8185
  updatedAt: Date;
8186
8186
  }
8187
- interface CreateBody {
8187
+ export interface CreateBody {
8188
8188
  name: string;
8189
8189
  asset_part_types: StringId[];
8190
8190
  creator?: AdminOrRep;
@@ -8207,7 +8207,7 @@ export declare namespace Service {
8207
8207
  };
8208
8208
  company_namespace?: string[];
8209
8209
  }
8210
- interface UpdateBody {
8210
+ export interface UpdateBody {
8211
8211
  _id?: StringId;
8212
8212
  creator?: AdminOrRep;
8213
8213
  editor?: AdminOrRep;
@@ -8234,7 +8234,13 @@ export declare namespace Service {
8234
8234
  createdAt?: Date;
8235
8235
  updatedAt?: Date;
8236
8236
  }
8237
- namespace Find {
8237
+ type PopulatedKeys =
8238
+ | "asset_part_types"
8239
+ | "assets"
8240
+ | "asset_units"
8241
+ | "media"
8242
+ | "cover_photo";
8243
+ export namespace Find {
8238
8244
  type Params = DefaultPaginationQueryParams & {
8239
8245
  _id?: StringId[] | StringId;
8240
8246
  search?: string;
@@ -8247,13 +8253,7 @@ export declare namespace Service {
8247
8253
  asset_part_types?: string[] | string;
8248
8254
  assets?: string[] | string;
8249
8255
  asset_units?: string[] | string;
8250
- populatesKeys?: (
8251
- | "asset_part_types"
8252
- | "assets"
8253
- | "asset_units"
8254
- | "media"
8255
- | "cover_photo"
8256
- )[];
8256
+ populatesKeys?: PopulatedKeys[];
8257
8257
  sortBy?: {
8258
8258
  field:
8259
8259
  | "_id"
@@ -8270,26 +8270,31 @@ export declare namespace Service {
8270
8270
  data: Data[] | PopulatedDoc[];
8271
8271
  }
8272
8272
  }
8273
- namespace Get {
8273
+ export namespace Get {
8274
8274
  type ID = string;
8275
+ type Params = {
8276
+ populatesKeys?: PopulatedKeys[];
8277
+ [key: string]: any;
8278
+ };
8275
8279
  type Result = Data | PopulatedDoc;
8276
8280
  }
8277
- namespace Create {
8281
+ export namespace Create {
8278
8282
  type Body = CreateBody;
8279
8283
  type Result = Data;
8280
8284
  }
8281
- namespace Update {
8285
+ export namespace Update {
8282
8286
  type ID = string;
8283
8287
  type Body = UpdateBody;
8284
8288
  type Result = Data;
8285
8289
  }
8286
- namespace Remove {
8290
+ export namespace Remove {
8287
8291
  type ID = string;
8288
8292
  type Result = Data;
8289
8293
  }
8294
+ export {};
8290
8295
  }
8291
8296
  namespace AssetPartUnit {
8292
- interface Data {
8297
+ export interface Data {
8293
8298
  _id: StringId;
8294
8299
  creator: AdminOrRep;
8295
8300
  editor?: AdminOrRep;
@@ -8335,7 +8340,7 @@ export declare namespace Service {
8335
8340
  createdAt: Date;
8336
8341
  updatedAt: Date;
8337
8342
  }
8338
- interface PopulatedDoc {
8343
+ export interface PopulatedDoc {
8339
8344
  _id: StringId;
8340
8345
  creator: AdminOrRep;
8341
8346
  editor?: AdminOrRep;
@@ -8405,7 +8410,7 @@ export declare namespace Service {
8405
8410
  createdAt: Date;
8406
8411
  updatedAt: Date;
8407
8412
  }
8408
- interface CreateBody {
8413
+ export interface CreateBody {
8409
8414
  creator?: AdminOrRep;
8410
8415
  directional_status:
8411
8416
  | "received"
@@ -8447,7 +8452,7 @@ export declare namespace Service {
8447
8452
  | "rejected";
8448
8453
  company_namespace?: string[];
8449
8454
  }
8450
- interface UpdateBody {
8455
+ export interface UpdateBody {
8451
8456
  custom_status?: StringId;
8452
8457
  comment?: string;
8453
8458
  media?: StringId[];
@@ -8465,7 +8470,15 @@ export declare namespace Service {
8465
8470
  | "collected"
8466
8471
  | "rejected";
8467
8472
  }
8468
- namespace Find {
8473
+ type PopulatedKeys =
8474
+ | "asset_part_receival"
8475
+ | "asset_part"
8476
+ | "client"
8477
+ | "warehouse"
8478
+ | "teams"
8479
+ | "custom_status"
8480
+ | "media";
8481
+ export namespace Find {
8469
8482
  type Params = DefaultPaginationQueryParams & {
8470
8483
  _id?: StringId[] | StringId;
8471
8484
  asset_part_receival?: StringId[] | StringId;
@@ -8485,15 +8498,7 @@ export declare namespace Service {
8485
8498
  to_updatedAt?: number;
8486
8499
  from_createdAt?: number;
8487
8500
  to_createdAt?: number;
8488
- populatesKeys?: (
8489
- | "asset_part_receival"
8490
- | "asset_part"
8491
- | "client"
8492
- | "warehouse"
8493
- | "teams"
8494
- | "custom_status"
8495
- | "media"
8496
- )[];
8501
+ populatesKeys?: PopulatedKeys[];
8497
8502
  sortBy?: {
8498
8503
  field: "_id" | "asset_part_index" | "createdAt" | "updatedAt";
8499
8504
  type: "asc" | "desc";
@@ -8513,18 +8518,23 @@ export declare namespace Service {
8513
8518
  data: Data[] | PopulatedDoc[];
8514
8519
  }
8515
8520
  }
8516
- namespace Get {
8521
+ export namespace Get {
8517
8522
  type ID = string;
8523
+ type Params = {
8524
+ populatesKeys?: PopulatedKeys[];
8525
+ [key: string]: any;
8526
+ };
8518
8527
  type Result = Data | PopulatedDoc;
8519
8528
  }
8520
- namespace Update {
8529
+ export namespace Update {
8521
8530
  type ID = string;
8522
8531
  type Body = UpdateBody;
8523
8532
  type Result = Data;
8524
8533
  }
8534
+ export {};
8525
8535
  }
8526
8536
  namespace AssetPartReceival {
8527
- interface Data {
8537
+ export interface Data {
8528
8538
  _id: StringId;
8529
8539
  creator: AdminOrRep;
8530
8540
  editor?: AdminOrRep;
@@ -8559,7 +8569,7 @@ export declare namespace Service {
8559
8569
  createdAt: Date;
8560
8570
  updatedAt: Date;
8561
8571
  }
8562
- interface PopulatedDoc {
8572
+ export interface PopulatedDoc {
8563
8573
  _id: StringId;
8564
8574
  creator: AdminOrRep;
8565
8575
  editor?: AdminOrRep;
@@ -8604,7 +8614,7 @@ export declare namespace Service {
8604
8614
  createdAt: Date;
8605
8615
  updatedAt: Date;
8606
8616
  }
8607
- interface CreateBody {
8617
+ export interface CreateBody {
8608
8618
  creator?: AdminOrRep;
8609
8619
  editor?: AdminOrRep;
8610
8620
  sync_id: string;
@@ -8636,7 +8646,7 @@ export declare namespace Service {
8636
8646
  workorder?: StringId;
8637
8647
  company_namespace: string[];
8638
8648
  }
8639
- interface UpdateBody {
8649
+ export interface UpdateBody {
8640
8650
  editor?: AdminOrRep;
8641
8651
  description?: string;
8642
8652
  custom_status?: StringId;
@@ -8646,7 +8656,16 @@ export declare namespace Service {
8646
8656
  };
8647
8657
  workorder?: StringId;
8648
8658
  }
8649
- namespace Find {
8659
+ type PopulatedKeys =
8660
+ | "asset_part"
8661
+ | "client"
8662
+ | "warehouse"
8663
+ | "teams"
8664
+ | "custom_status"
8665
+ | "media"
8666
+ | "signature"
8667
+ | "workorder";
8668
+ export namespace Find {
8650
8669
  type Params = DefaultPaginationQueryParams & {
8651
8670
  _id?: StringId[] | StringId;
8652
8671
  search?: string;
@@ -8673,16 +8692,7 @@ export declare namespace Service {
8673
8692
  from_updatedAt?: number;
8674
8693
  to_updatedAt?: number;
8675
8694
  workorder?: StringId | StringId[];
8676
- populatesKeys?: (
8677
- | "asset_part"
8678
- | "client"
8679
- | "warehouse"
8680
- | "teams"
8681
- | "custom_status"
8682
- | "media"
8683
- | "signature"
8684
- | "workorder"
8685
- )[];
8695
+ populatesKeys?: PopulatedKeys[];
8686
8696
  sortBy?: {
8687
8697
  field: "_id" | "time" | "createdAt" | "updatedAt";
8688
8698
  type: "asc" | "desc";
@@ -8693,20 +8703,24 @@ export declare namespace Service {
8693
8703
  data: Data[] | PopulatedDoc[];
8694
8704
  }
8695
8705
  }
8696
- namespace Get {
8706
+ export namespace Get {
8697
8707
  type ID = string;
8708
+ type Params = {
8709
+ populatesKeys?: PopulatedKeys[];
8710
+ [key: string]: any;
8711
+ };
8698
8712
  type Result = Data | PopulatedDoc;
8699
8713
  }
8700
- namespace Create {
8714
+ export namespace Create {
8701
8715
  type Body = CreateBody;
8702
8716
  type Result = Data;
8703
8717
  }
8704
- namespace Update {
8718
+ export namespace Update {
8705
8719
  type ID = string;
8706
8720
  type Body = UpdateBody;
8707
8721
  type Result = Data;
8708
8722
  }
8709
- namespace Patch {
8723
+ export namespace Patch {
8710
8724
  type Params = {
8711
8725
  updateStatus: true;
8712
8726
  };
@@ -8729,9 +8743,10 @@ export declare namespace Service {
8729
8743
  nModified: number;
8730
8744
  };
8731
8745
  }
8746
+ export {};
8732
8747
  }
8733
8748
  namespace AssetPartTransfer {
8734
- interface Data {
8749
+ export interface Data {
8735
8750
  _id: StringId;
8736
8751
  creator: AdminOrRep;
8737
8752
  editor?: AdminOrRep;
@@ -8779,7 +8794,7 @@ export declare namespace Service {
8779
8794
  createdAt: Date;
8780
8795
  updatedAt: Date;
8781
8796
  }
8782
- interface PopulatedDoc {
8797
+ export interface PopulatedDoc {
8783
8798
  _id: StringId;
8784
8799
  creator: AdminOrRep;
8785
8800
  editor?: AdminOrRep;
@@ -8843,7 +8858,7 @@ export declare namespace Service {
8843
8858
  createdAt: Date;
8844
8859
  updatedAt: Date;
8845
8860
  }
8846
- interface CreateBody {
8861
+ export interface CreateBody {
8847
8862
  creator?: AdminOrRep;
8848
8863
  serial_number: SerialNumber;
8849
8864
  type: "load" | "unload";
@@ -8879,7 +8894,7 @@ export declare namespace Service {
8879
8894
  }[];
8880
8895
  company_namespace: string[];
8881
8896
  }
8882
- interface UpdateBody {
8897
+ export interface UpdateBody {
8883
8898
  _id?: StringId;
8884
8899
  creator?: AdminOrRep;
8885
8900
  editor?: AdminOrRep;
@@ -8929,7 +8944,14 @@ export declare namespace Service {
8929
8944
  [key: string]: any;
8930
8945
  }[];
8931
8946
  }
8932
- namespace Find {
8947
+ type PopulatedKeys =
8948
+ | "asset_part_unit"
8949
+ | "warehouse"
8950
+ | "teams"
8951
+ | "custom_status"
8952
+ | "from"
8953
+ | "to";
8954
+ export namespace Find {
8933
8955
  type Params = DefaultPaginationQueryParams & {
8934
8956
  nodeCycles?: StringId[] | StringId;
8935
8957
  _id?: StringId[] | StringId;
@@ -8959,14 +8981,7 @@ export declare namespace Service {
8959
8981
  to_createdAt?: number;
8960
8982
  from_updatedAt?: number;
8961
8983
  to_updatedAt?: number;
8962
- populatesKeys?: (
8963
- | "asset_part_unit"
8964
- | "warehouse"
8965
- | "teams"
8966
- | "custom_status"
8967
- | "from"
8968
- | "to"
8969
- )[];
8984
+ populatesKeys?: PopulatedKeys[];
8970
8985
  sortBy?: {
8971
8986
  field: "_id" | "time" | "createdAt" | "updatedAt";
8972
8987
  type: "asc" | "desc";
@@ -8977,20 +8992,30 @@ export declare namespace Service {
8977
8992
  data: Data[] | PopulatedDoc[];
8978
8993
  }
8979
8994
  }
8980
- namespace Get {
8995
+ export namespace Get {
8981
8996
  type ID = StringId;
8982
- type Result = Data | PopulatedDoc;
8997
+ type Params = {
8998
+ withCycle?: boolean;
8999
+ validityCheck?: boolean;
9000
+ populatesKeys?: PopulatedKeys[];
9001
+ [key: string]: any;
9002
+ };
9003
+ type Result = (Data | PopulatedDoc) & {
9004
+ cycle?: Cycle.Schema;
9005
+ validityCheck?: ValidityCheck;
9006
+ you_can_approve?: boolean;
9007
+ };
8983
9008
  }
8984
- namespace Create {
9009
+ export namespace Create {
8985
9010
  type Body = CreateBody;
8986
9011
  type Result = Data;
8987
9012
  }
8988
- namespace Update {
9013
+ export namespace Update {
8989
9014
  type ID = StringId;
8990
9015
  type Body = UpdateBody;
8991
9016
  type Result = Data;
8992
9017
  }
8993
- namespace Patch {
9018
+ export namespace Patch {
8994
9019
  type Params = {
8995
9020
  updateStatus: true;
8996
9021
  };
@@ -9013,9 +9038,10 @@ export declare namespace Service {
9013
9038
  nModified: number;
9014
9039
  };
9015
9040
  }
9041
+ export {};
9016
9042
  }
9017
9043
  namespace ReturnAssetPartUnit {
9018
- interface Data {
9044
+ export interface Data {
9019
9045
  _id: StringId;
9020
9046
  creator: AdminOrRep;
9021
9047
  editor?: AdminOrRep;
@@ -9065,7 +9091,7 @@ export declare namespace Service {
9065
9091
  createdAt: Date;
9066
9092
  updatedAt: Date;
9067
9093
  }
9068
- interface PopulatedDoc {
9094
+ export interface PopulatedDoc {
9069
9095
  _id: StringId;
9070
9096
  creator: AdminOrRep;
9071
9097
  editor?: AdminOrRep;
@@ -9124,7 +9150,7 @@ export declare namespace Service {
9124
9150
  createdAt: Date;
9125
9151
  updatedAt: Date;
9126
9152
  }
9127
- interface CreateBody {
9153
+ export interface CreateBody {
9128
9154
  creator?: AdminOrRep;
9129
9155
  editor?: AdminOrRep;
9130
9156
  sync_id: string;
@@ -9159,7 +9185,7 @@ export declare namespace Service {
9159
9185
  workorder?: StringId;
9160
9186
  company_namespace: string[];
9161
9187
  }
9162
- interface UpdateBody {
9188
+ export interface UpdateBody {
9163
9189
  _id?: StringId;
9164
9190
  creator?: AdminOrRep;
9165
9191
  editor?: AdminOrRep;
@@ -9212,7 +9238,16 @@ export declare namespace Service {
9212
9238
  createdAt?: Date;
9213
9239
  updatedAt?: Date;
9214
9240
  }
9215
- namespace Find {
9241
+ type PopulatedKeys =
9242
+ | "client"
9243
+ | "asset_part_unit"
9244
+ | "warehouse"
9245
+ | "teams"
9246
+ | "custom_status"
9247
+ | "meadia"
9248
+ | "signature"
9249
+ | "workorder";
9250
+ export namespace Find {
9216
9251
  type Params = DefaultPaginationQueryParams & {
9217
9252
  _id?: StringId[] | StringId;
9218
9253
  search?: string;
@@ -9239,16 +9274,7 @@ export declare namespace Service {
9239
9274
  from_updatedAt?: number;
9240
9275
  to_updatedAt?: number;
9241
9276
  workorder?: StringId | StringId[];
9242
- populatesKeys?: (
9243
- | "client"
9244
- | "asset_part_unit"
9245
- | "warehouse"
9246
- | "teams"
9247
- | "custom_status"
9248
- | "meadia"
9249
- | "signature"
9250
- | "workorder"
9251
- )[];
9277
+ populatesKeys?: PopulatedKeys[];
9252
9278
  sortBy?: {
9253
9279
  field: "_id" | "time" | "createdAt" | "updatedAt";
9254
9280
  type: "asc" | "desc";
@@ -9259,20 +9285,29 @@ export declare namespace Service {
9259
9285
  data: Data[] | PopulatedDoc[];
9260
9286
  }
9261
9287
  }
9262
- namespace Get {
9288
+ export namespace Get {
9263
9289
  type ID = string;
9264
- type Result = Data | PopulatedDoc;
9290
+ type Params = {
9291
+ withCycle?: boolean;
9292
+ validityCheck?: boolean;
9293
+ populatesKeys?: PopulatedKeys[];
9294
+ [key: string]: any;
9295
+ };
9296
+ type Result = (Data | PopulatedDoc) & {
9297
+ cycle?: Cycle.Schema;
9298
+ validityCheck?: ValidityCheck;
9299
+ };
9265
9300
  }
9266
- namespace Create {
9301
+ export namespace Create {
9267
9302
  type Body = CreateBody;
9268
9303
  type Result = Data;
9269
9304
  }
9270
- namespace Update {
9305
+ export namespace Update {
9271
9306
  type ID = string;
9272
9307
  type Body = UpdateBody;
9273
9308
  type Result = Data;
9274
9309
  }
9275
- namespace Patch {
9310
+ export namespace Patch {
9276
9311
  type Params = {
9277
9312
  updateStatus: true;
9278
9313
  };
@@ -9295,9 +9330,10 @@ export declare namespace Service {
9295
9330
  nModified: number;
9296
9331
  };
9297
9332
  }
9333
+ export {};
9298
9334
  }
9299
9335
  namespace StoreAssetPartUnit {
9300
- interface Data {
9336
+ export interface Data {
9301
9337
  _id: StringId;
9302
9338
  creator: AdminOrRep;
9303
9339
  editor?: AdminOrRep;
@@ -9344,7 +9380,7 @@ export declare namespace Service {
9344
9380
  createdAt: Date;
9345
9381
  updatedAt: Date;
9346
9382
  }
9347
- interface PopulatedDoc {
9383
+ export interface PopulatedDoc {
9348
9384
  _id: StringId;
9349
9385
  creator: AdminOrRep;
9350
9386
  editor?: AdminOrRep;
@@ -9398,7 +9434,7 @@ export declare namespace Service {
9398
9434
  createdAt: Date;
9399
9435
  updatedAt: Date;
9400
9436
  }
9401
- interface CreateBody {
9437
+ export interface CreateBody {
9402
9438
  creator?: AdminOrRep;
9403
9439
  editor?: AdminOrRep;
9404
9440
  sync_id: string;
@@ -9430,7 +9466,7 @@ export declare namespace Service {
9430
9466
  total_asset_part_units_qty?: number;
9431
9467
  company_namespace: string[];
9432
9468
  }
9433
- interface UpdateBody {
9469
+ export interface UpdateBody {
9434
9470
  _id?: StringId;
9435
9471
  creator?: AdminOrRep;
9436
9472
  editor?: AdminOrRep;
@@ -9480,7 +9516,14 @@ export declare namespace Service {
9480
9516
  createdAt?: Date;
9481
9517
  updatedAt?: Date;
9482
9518
  }
9483
- namespace Find {
9519
+ type PopulatedKeys =
9520
+ | "asset_part_unit"
9521
+ | "warehouse"
9522
+ | "teams"
9523
+ | "custom_status"
9524
+ | "meadia"
9525
+ | "signature";
9526
+ export namespace Find {
9484
9527
  type Params = DefaultPaginationQueryParams & {
9485
9528
  _id?: StringId[] | StringId;
9486
9529
  search?: string;
@@ -9505,14 +9548,7 @@ export declare namespace Service {
9505
9548
  to_createdAt?: number;
9506
9549
  from_updatedAt?: number;
9507
9550
  to_updatedAt?: number;
9508
- populatesKeys?: (
9509
- | "asset_part_unit"
9510
- | "warehouse"
9511
- | "teams"
9512
- | "custom_status"
9513
- | "meadia"
9514
- | "signature"
9515
- )[];
9551
+ populatesKeys?: PopulatedKeys[];
9516
9552
  sortBy?: {
9517
9553
  field: "_id" | "time" | "createdAt" | "updatedAt";
9518
9554
  type: "asc" | "desc";
@@ -9523,20 +9559,29 @@ export declare namespace Service {
9523
9559
  data: Data[] | PopulatedDoc[];
9524
9560
  }
9525
9561
  }
9526
- namespace Get {
9527
- type ID = string;
9528
- type Result = Data | PopulatedDoc;
9562
+ export namespace Get {
9563
+ type ID = StringId;
9564
+ type Params = {
9565
+ withCycle?: boolean;
9566
+ validityCheck?: boolean;
9567
+ populatesKeys?: PopulatedKeys[];
9568
+ [key: string]: any;
9569
+ };
9570
+ type Result = (Data | PopulatedDoc) & {
9571
+ cycle?: Cycle.Schema;
9572
+ validityCheck?: ValidityCheck;
9573
+ };
9529
9574
  }
9530
- namespace Create {
9575
+ export namespace Create {
9531
9576
  type Body = CreateBody;
9532
9577
  type Result = Data;
9533
9578
  }
9534
- namespace Update {
9579
+ export namespace Update {
9535
9580
  type ID = string;
9536
9581
  type Body = UpdateBody;
9537
9582
  type Result = Data;
9538
9583
  }
9539
- namespace Patch {
9584
+ export namespace Patch {
9540
9585
  type Params = {
9541
9586
  updateStatus: true;
9542
9587
  };
@@ -9559,6 +9604,7 @@ export declare namespace Service {
9559
9604
  nModified: number;
9560
9605
  };
9561
9606
  }
9607
+ export {};
9562
9608
  }
9563
9609
  namespace Cart {
9564
9610
  type Promo = Promotion.Schema & {
@@ -10887,6 +10933,13 @@ export interface AdminOrRep {
10887
10933
  admin?: StringId;
10888
10934
  rep?: StringId;
10889
10935
  }
10936
+ interface ValidityCheck {
10937
+ valid: boolean;
10938
+ reasons: {
10939
+ message: string;
10940
+ code: string;
10941
+ }[];
10942
+ }
10890
10943
  declare type PopulatedMediaStorage = Pick<
10891
10944
  Service.MediaStorage.MediaStorageSchema,
10892
10945
  | "_id"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repzo",
3
- "version": "1.0.98",
3
+ "version": "1.0.99",
4
4
  "description": "Repzo TypeScript SDK",
5
5
  "main": "./lib/index.js",
6
6
  "type": "module",