repzo 1.0.98 → 1.0.100

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;
@@ -8300,6 +8305,7 @@ export declare namespace Service {
8300
8305
  | "returned"
8301
8306
  | "stored";
8302
8307
  asset_part_receival: StringId;
8308
+ asset_part_return?: StringId;
8303
8309
  asset_part_index: number;
8304
8310
  splitted_from?: StringId;
8305
8311
  client: StringId;
@@ -8335,7 +8341,7 @@ export declare namespace Service {
8335
8341
  createdAt: Date;
8336
8342
  updatedAt: Date;
8337
8343
  }
8338
- interface PopulatedDoc {
8344
+ export interface PopulatedDoc {
8339
8345
  _id: StringId;
8340
8346
  creator: AdminOrRep;
8341
8347
  editor?: AdminOrRep;
@@ -8346,6 +8352,7 @@ export declare namespace Service {
8346
8352
  | "returned"
8347
8353
  | "stored";
8348
8354
  asset_part_receival: StringId | AssetPartReceival.Data;
8355
+ asset_part_return?: StringId | ReturnAssetPartUnit.Data;
8349
8356
  asset_part_index: number;
8350
8357
  splitted_from?: StringId | Data;
8351
8358
  client:
@@ -8405,7 +8412,7 @@ export declare namespace Service {
8405
8412
  createdAt: Date;
8406
8413
  updatedAt: Date;
8407
8414
  }
8408
- interface CreateBody {
8415
+ export interface CreateBody {
8409
8416
  creator?: AdminOrRep;
8410
8417
  directional_status:
8411
8418
  | "received"
@@ -8447,7 +8454,7 @@ export declare namespace Service {
8447
8454
  | "rejected";
8448
8455
  company_namespace?: string[];
8449
8456
  }
8450
- interface UpdateBody {
8457
+ export interface UpdateBody {
8451
8458
  custom_status?: StringId;
8452
8459
  comment?: string;
8453
8460
  media?: StringId[];
@@ -8465,10 +8472,20 @@ export declare namespace Service {
8465
8472
  | "collected"
8466
8473
  | "rejected";
8467
8474
  }
8468
- namespace Find {
8475
+ type PopulatedKeys =
8476
+ | "asset_part_receival"
8477
+ | "asset_part_return"
8478
+ | "asset_part"
8479
+ | "client"
8480
+ | "warehouse"
8481
+ | "teams"
8482
+ | "custom_status"
8483
+ | "media";
8484
+ export namespace Find {
8469
8485
  type Params = DefaultPaginationQueryParams & {
8470
8486
  _id?: StringId[] | StringId;
8471
8487
  asset_part_receival?: StringId[] | StringId;
8488
+ asset_part_return?: StringId[] | StringId;
8472
8489
  client?: StringId[] | StringId;
8473
8490
  warehouse?: StringId[] | StringId;
8474
8491
  receival_warehouse?: StringId[] | StringId;
@@ -8485,15 +8502,7 @@ export declare namespace Service {
8485
8502
  to_updatedAt?: number;
8486
8503
  from_createdAt?: number;
8487
8504
  to_createdAt?: number;
8488
- populatesKeys?: (
8489
- | "asset_part_receival"
8490
- | "asset_part"
8491
- | "client"
8492
- | "warehouse"
8493
- | "teams"
8494
- | "custom_status"
8495
- | "media"
8496
- )[];
8505
+ populatesKeys?: PopulatedKeys[];
8497
8506
  sortBy?: {
8498
8507
  field: "_id" | "asset_part_index" | "createdAt" | "updatedAt";
8499
8508
  type: "asc" | "desc";
@@ -8513,18 +8522,23 @@ export declare namespace Service {
8513
8522
  data: Data[] | PopulatedDoc[];
8514
8523
  }
8515
8524
  }
8516
- namespace Get {
8525
+ export namespace Get {
8517
8526
  type ID = string;
8527
+ type Params = {
8528
+ populatesKeys?: PopulatedKeys[];
8529
+ [key: string]: any;
8530
+ };
8518
8531
  type Result = Data | PopulatedDoc;
8519
8532
  }
8520
- namespace Update {
8533
+ export namespace Update {
8521
8534
  type ID = string;
8522
8535
  type Body = UpdateBody;
8523
8536
  type Result = Data;
8524
8537
  }
8538
+ export {};
8525
8539
  }
8526
8540
  namespace AssetPartReceival {
8527
- interface Data {
8541
+ export interface Data {
8528
8542
  _id: StringId;
8529
8543
  creator: AdminOrRep;
8530
8544
  editor?: AdminOrRep;
@@ -8559,7 +8573,7 @@ export declare namespace Service {
8559
8573
  createdAt: Date;
8560
8574
  updatedAt: Date;
8561
8575
  }
8562
- interface PopulatedDoc {
8576
+ export interface PopulatedDoc {
8563
8577
  _id: StringId;
8564
8578
  creator: AdminOrRep;
8565
8579
  editor?: AdminOrRep;
@@ -8604,7 +8618,7 @@ export declare namespace Service {
8604
8618
  createdAt: Date;
8605
8619
  updatedAt: Date;
8606
8620
  }
8607
- interface CreateBody {
8621
+ export interface CreateBody {
8608
8622
  creator?: AdminOrRep;
8609
8623
  editor?: AdminOrRep;
8610
8624
  sync_id: string;
@@ -8636,7 +8650,7 @@ export declare namespace Service {
8636
8650
  workorder?: StringId;
8637
8651
  company_namespace: string[];
8638
8652
  }
8639
- interface UpdateBody {
8653
+ export interface UpdateBody {
8640
8654
  editor?: AdminOrRep;
8641
8655
  description?: string;
8642
8656
  custom_status?: StringId;
@@ -8646,7 +8660,16 @@ export declare namespace Service {
8646
8660
  };
8647
8661
  workorder?: StringId;
8648
8662
  }
8649
- namespace Find {
8663
+ type PopulatedKeys =
8664
+ | "asset_part"
8665
+ | "client"
8666
+ | "warehouse"
8667
+ | "teams"
8668
+ | "custom_status"
8669
+ | "media"
8670
+ | "signature"
8671
+ | "workorder";
8672
+ export namespace Find {
8650
8673
  type Params = DefaultPaginationQueryParams & {
8651
8674
  _id?: StringId[] | StringId;
8652
8675
  search?: string;
@@ -8673,16 +8696,7 @@ export declare namespace Service {
8673
8696
  from_updatedAt?: number;
8674
8697
  to_updatedAt?: number;
8675
8698
  workorder?: StringId | StringId[];
8676
- populatesKeys?: (
8677
- | "asset_part"
8678
- | "client"
8679
- | "warehouse"
8680
- | "teams"
8681
- | "custom_status"
8682
- | "media"
8683
- | "signature"
8684
- | "workorder"
8685
- )[];
8699
+ populatesKeys?: PopulatedKeys[];
8686
8700
  sortBy?: {
8687
8701
  field: "_id" | "time" | "createdAt" | "updatedAt";
8688
8702
  type: "asc" | "desc";
@@ -8693,20 +8707,24 @@ export declare namespace Service {
8693
8707
  data: Data[] | PopulatedDoc[];
8694
8708
  }
8695
8709
  }
8696
- namespace Get {
8710
+ export namespace Get {
8697
8711
  type ID = string;
8712
+ type Params = {
8713
+ populatesKeys?: PopulatedKeys[];
8714
+ [key: string]: any;
8715
+ };
8698
8716
  type Result = Data | PopulatedDoc;
8699
8717
  }
8700
- namespace Create {
8718
+ export namespace Create {
8701
8719
  type Body = CreateBody;
8702
8720
  type Result = Data;
8703
8721
  }
8704
- namespace Update {
8722
+ export namespace Update {
8705
8723
  type ID = string;
8706
8724
  type Body = UpdateBody;
8707
8725
  type Result = Data;
8708
8726
  }
8709
- namespace Patch {
8727
+ export namespace Patch {
8710
8728
  type Params = {
8711
8729
  updateStatus: true;
8712
8730
  };
@@ -8729,9 +8747,10 @@ export declare namespace Service {
8729
8747
  nModified: number;
8730
8748
  };
8731
8749
  }
8750
+ export {};
8732
8751
  }
8733
8752
  namespace AssetPartTransfer {
8734
- interface Data {
8753
+ export interface Data {
8735
8754
  _id: StringId;
8736
8755
  creator: AdminOrRep;
8737
8756
  editor?: AdminOrRep;
@@ -8752,6 +8771,7 @@ export declare namespace Service {
8752
8771
  | "failed";
8753
8772
  sync_id: string;
8754
8773
  asset_part_units: {
8774
+ _id: StringId;
8755
8775
  asset_part_unit: StringId;
8756
8776
  qty: number;
8757
8777
  asset_part?: StringId;
@@ -8779,7 +8799,7 @@ export declare namespace Service {
8779
8799
  createdAt: Date;
8780
8800
  updatedAt: Date;
8781
8801
  }
8782
- interface PopulatedDoc {
8802
+ export interface PopulatedDoc {
8783
8803
  _id: StringId;
8784
8804
  creator: AdminOrRep;
8785
8805
  editor?: AdminOrRep;
@@ -8804,6 +8824,7 @@ export declare namespace Service {
8804
8824
  | "failed";
8805
8825
  sync_id: string;
8806
8826
  asset_part_units: {
8827
+ _id: StringId;
8807
8828
  asset_part_unit:
8808
8829
  | StringId
8809
8830
  | (AssetPartUnit.Data & {
@@ -8843,9 +8864,9 @@ export declare namespace Service {
8843
8864
  createdAt: Date;
8844
8865
  updatedAt: Date;
8845
8866
  }
8846
- interface CreateBody {
8867
+ export interface CreateBody {
8847
8868
  creator?: AdminOrRep;
8848
- serial_number: SerialNumber;
8869
+ serial_number?: SerialNumber;
8849
8870
  type: "load" | "unload";
8850
8871
  from: StringId;
8851
8872
  to: StringId;
@@ -8856,6 +8877,7 @@ export declare namespace Service {
8856
8877
  status?: "pending";
8857
8878
  sync_id: string;
8858
8879
  asset_part_units: {
8880
+ _id?: StringId;
8859
8881
  asset_part_unit: StringId;
8860
8882
  qty: number;
8861
8883
  asset_part?: StringId;
@@ -8879,7 +8901,7 @@ export declare namespace Service {
8879
8901
  }[];
8880
8902
  company_namespace: string[];
8881
8903
  }
8882
- interface UpdateBody {
8904
+ export interface UpdateBody {
8883
8905
  _id?: StringId;
8884
8906
  creator?: AdminOrRep;
8885
8907
  editor?: AdminOrRep;
@@ -8900,6 +8922,7 @@ export declare namespace Service {
8900
8922
  | "failed";
8901
8923
  sync_id?: string;
8902
8924
  asset_part_units?: {
8925
+ _id?: StringId;
8903
8926
  asset_part_unit: StringId;
8904
8927
  qty: number;
8905
8928
  asset_part_name?: string;
@@ -8929,7 +8952,14 @@ export declare namespace Service {
8929
8952
  [key: string]: any;
8930
8953
  }[];
8931
8954
  }
8932
- namespace Find {
8955
+ type PopulatedKeys =
8956
+ | "asset_part_unit"
8957
+ | "warehouse"
8958
+ | "teams"
8959
+ | "custom_status"
8960
+ | "from"
8961
+ | "to";
8962
+ export namespace Find {
8933
8963
  type Params = DefaultPaginationQueryParams & {
8934
8964
  nodeCycles?: StringId[] | StringId;
8935
8965
  _id?: StringId[] | StringId;
@@ -8959,14 +8989,7 @@ export declare namespace Service {
8959
8989
  to_createdAt?: number;
8960
8990
  from_updatedAt?: number;
8961
8991
  to_updatedAt?: number;
8962
- populatesKeys?: (
8963
- | "asset_part_unit"
8964
- | "warehouse"
8965
- | "teams"
8966
- | "custom_status"
8967
- | "from"
8968
- | "to"
8969
- )[];
8992
+ populatesKeys?: PopulatedKeys[];
8970
8993
  sortBy?: {
8971
8994
  field: "_id" | "time" | "createdAt" | "updatedAt";
8972
8995
  type: "asc" | "desc";
@@ -8977,20 +9000,30 @@ export declare namespace Service {
8977
9000
  data: Data[] | PopulatedDoc[];
8978
9001
  }
8979
9002
  }
8980
- namespace Get {
9003
+ export namespace Get {
8981
9004
  type ID = StringId;
8982
- type Result = Data | PopulatedDoc;
9005
+ type Params = {
9006
+ withCycle?: boolean;
9007
+ validityCheck?: boolean;
9008
+ populatesKeys?: PopulatedKeys[];
9009
+ [key: string]: any;
9010
+ };
9011
+ type Result = (Data | PopulatedDoc) & {
9012
+ cycle?: Cycle.Schema;
9013
+ validityCheck?: ValidityCheck;
9014
+ you_can_approve?: boolean;
9015
+ };
8983
9016
  }
8984
- namespace Create {
9017
+ export namespace Create {
8985
9018
  type Body = CreateBody;
8986
9019
  type Result = Data;
8987
9020
  }
8988
- namespace Update {
9021
+ export namespace Update {
8989
9022
  type ID = StringId;
8990
9023
  type Body = UpdateBody;
8991
9024
  type Result = Data;
8992
9025
  }
8993
- namespace Patch {
9026
+ export namespace Patch {
8994
9027
  type Params = {
8995
9028
  updateStatus: true;
8996
9029
  };
@@ -9013,9 +9046,10 @@ export declare namespace Service {
9013
9046
  nModified: number;
9014
9047
  };
9015
9048
  }
9049
+ export {};
9016
9050
  }
9017
9051
  namespace ReturnAssetPartUnit {
9018
- interface Data {
9052
+ export interface Data {
9019
9053
  _id: StringId;
9020
9054
  creator: AdminOrRep;
9021
9055
  editor?: AdminOrRep;
@@ -9065,7 +9099,7 @@ export declare namespace Service {
9065
9099
  createdAt: Date;
9066
9100
  updatedAt: Date;
9067
9101
  }
9068
- interface PopulatedDoc {
9102
+ export interface PopulatedDoc {
9069
9103
  _id: StringId;
9070
9104
  creator: AdminOrRep;
9071
9105
  editor?: AdminOrRep;
@@ -9124,7 +9158,7 @@ export declare namespace Service {
9124
9158
  createdAt: Date;
9125
9159
  updatedAt: Date;
9126
9160
  }
9127
- interface CreateBody {
9161
+ export interface CreateBody {
9128
9162
  creator?: AdminOrRep;
9129
9163
  editor?: AdminOrRep;
9130
9164
  sync_id: string;
@@ -9159,7 +9193,7 @@ export declare namespace Service {
9159
9193
  workorder?: StringId;
9160
9194
  company_namespace: string[];
9161
9195
  }
9162
- interface UpdateBody {
9196
+ export interface UpdateBody {
9163
9197
  _id?: StringId;
9164
9198
  creator?: AdminOrRep;
9165
9199
  editor?: AdminOrRep;
@@ -9212,7 +9246,16 @@ export declare namespace Service {
9212
9246
  createdAt?: Date;
9213
9247
  updatedAt?: Date;
9214
9248
  }
9215
- namespace Find {
9249
+ type PopulatedKeys =
9250
+ | "client"
9251
+ | "asset_part_unit"
9252
+ | "warehouse"
9253
+ | "teams"
9254
+ | "custom_status"
9255
+ | "meadia"
9256
+ | "signature"
9257
+ | "workorder";
9258
+ export namespace Find {
9216
9259
  type Params = DefaultPaginationQueryParams & {
9217
9260
  _id?: StringId[] | StringId;
9218
9261
  search?: string;
@@ -9239,16 +9282,7 @@ export declare namespace Service {
9239
9282
  from_updatedAt?: number;
9240
9283
  to_updatedAt?: number;
9241
9284
  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
- )[];
9285
+ populatesKeys?: PopulatedKeys[];
9252
9286
  sortBy?: {
9253
9287
  field: "_id" | "time" | "createdAt" | "updatedAt";
9254
9288
  type: "asc" | "desc";
@@ -9259,20 +9293,29 @@ export declare namespace Service {
9259
9293
  data: Data[] | PopulatedDoc[];
9260
9294
  }
9261
9295
  }
9262
- namespace Get {
9296
+ export namespace Get {
9263
9297
  type ID = string;
9264
- type Result = Data | PopulatedDoc;
9298
+ type Params = {
9299
+ withCycle?: boolean;
9300
+ validityCheck?: boolean;
9301
+ populatesKeys?: PopulatedKeys[];
9302
+ [key: string]: any;
9303
+ };
9304
+ type Result = (Data | PopulatedDoc) & {
9305
+ cycle?: Cycle.Schema;
9306
+ validityCheck?: ValidityCheck;
9307
+ };
9265
9308
  }
9266
- namespace Create {
9309
+ export namespace Create {
9267
9310
  type Body = CreateBody;
9268
9311
  type Result = Data;
9269
9312
  }
9270
- namespace Update {
9313
+ export namespace Update {
9271
9314
  type ID = string;
9272
9315
  type Body = UpdateBody;
9273
9316
  type Result = Data;
9274
9317
  }
9275
- namespace Patch {
9318
+ export namespace Patch {
9276
9319
  type Params = {
9277
9320
  updateStatus: true;
9278
9321
  };
@@ -9295,9 +9338,10 @@ export declare namespace Service {
9295
9338
  nModified: number;
9296
9339
  };
9297
9340
  }
9341
+ export {};
9298
9342
  }
9299
9343
  namespace StoreAssetPartUnit {
9300
- interface Data {
9344
+ export interface Data {
9301
9345
  _id: StringId;
9302
9346
  creator: AdminOrRep;
9303
9347
  editor?: AdminOrRep;
@@ -9344,7 +9388,7 @@ export declare namespace Service {
9344
9388
  createdAt: Date;
9345
9389
  updatedAt: Date;
9346
9390
  }
9347
- interface PopulatedDoc {
9391
+ export interface PopulatedDoc {
9348
9392
  _id: StringId;
9349
9393
  creator: AdminOrRep;
9350
9394
  editor?: AdminOrRep;
@@ -9398,7 +9442,7 @@ export declare namespace Service {
9398
9442
  createdAt: Date;
9399
9443
  updatedAt: Date;
9400
9444
  }
9401
- interface CreateBody {
9445
+ export interface CreateBody {
9402
9446
  creator?: AdminOrRep;
9403
9447
  editor?: AdminOrRep;
9404
9448
  sync_id: string;
@@ -9430,7 +9474,7 @@ export declare namespace Service {
9430
9474
  total_asset_part_units_qty?: number;
9431
9475
  company_namespace: string[];
9432
9476
  }
9433
- interface UpdateBody {
9477
+ export interface UpdateBody {
9434
9478
  _id?: StringId;
9435
9479
  creator?: AdminOrRep;
9436
9480
  editor?: AdminOrRep;
@@ -9480,7 +9524,14 @@ export declare namespace Service {
9480
9524
  createdAt?: Date;
9481
9525
  updatedAt?: Date;
9482
9526
  }
9483
- namespace Find {
9527
+ type PopulatedKeys =
9528
+ | "asset_part_unit"
9529
+ | "warehouse"
9530
+ | "teams"
9531
+ | "custom_status"
9532
+ | "meadia"
9533
+ | "signature";
9534
+ export namespace Find {
9484
9535
  type Params = DefaultPaginationQueryParams & {
9485
9536
  _id?: StringId[] | StringId;
9486
9537
  search?: string;
@@ -9505,14 +9556,7 @@ export declare namespace Service {
9505
9556
  to_createdAt?: number;
9506
9557
  from_updatedAt?: number;
9507
9558
  to_updatedAt?: number;
9508
- populatesKeys?: (
9509
- | "asset_part_unit"
9510
- | "warehouse"
9511
- | "teams"
9512
- | "custom_status"
9513
- | "meadia"
9514
- | "signature"
9515
- )[];
9559
+ populatesKeys?: PopulatedKeys[];
9516
9560
  sortBy?: {
9517
9561
  field: "_id" | "time" | "createdAt" | "updatedAt";
9518
9562
  type: "asc" | "desc";
@@ -9523,20 +9567,29 @@ export declare namespace Service {
9523
9567
  data: Data[] | PopulatedDoc[];
9524
9568
  }
9525
9569
  }
9526
- namespace Get {
9527
- type ID = string;
9528
- type Result = Data | PopulatedDoc;
9570
+ export namespace Get {
9571
+ type ID = StringId;
9572
+ type Params = {
9573
+ withCycle?: boolean;
9574
+ validityCheck?: boolean;
9575
+ populatesKeys?: PopulatedKeys[];
9576
+ [key: string]: any;
9577
+ };
9578
+ type Result = (Data | PopulatedDoc) & {
9579
+ cycle?: Cycle.Schema;
9580
+ validityCheck?: ValidityCheck;
9581
+ };
9529
9582
  }
9530
- namespace Create {
9583
+ export namespace Create {
9531
9584
  type Body = CreateBody;
9532
9585
  type Result = Data;
9533
9586
  }
9534
- namespace Update {
9587
+ export namespace Update {
9535
9588
  type ID = string;
9536
9589
  type Body = UpdateBody;
9537
9590
  type Result = Data;
9538
9591
  }
9539
- namespace Patch {
9592
+ export namespace Patch {
9540
9593
  type Params = {
9541
9594
  updateStatus: true;
9542
9595
  };
@@ -9559,6 +9612,7 @@ export declare namespace Service {
9559
9612
  nModified: number;
9560
9613
  };
9561
9614
  }
9615
+ export {};
9562
9616
  }
9563
9617
  namespace Cart {
9564
9618
  type Promo = Promotion.Schema & {
@@ -10887,6 +10941,13 @@ export interface AdminOrRep {
10887
10941
  admin?: StringId;
10888
10942
  rep?: StringId;
10889
10943
  }
10944
+ interface ValidityCheck {
10945
+ valid: boolean;
10946
+ reasons: {
10947
+ message: string;
10948
+ code: string;
10949
+ }[];
10950
+ }
10890
10951
  declare type PopulatedMediaStorage = Pick<
10891
10952
  Service.MediaStorage.MediaStorageSchema,
10892
10953
  | "_id"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repzo",
3
- "version": "1.0.98",
3
+ "version": "1.0.100",
4
4
  "description": "Repzo TypeScript SDK",
5
5
  "main": "./lib/index.js",
6
6
  "type": "module",