repzo 1.0.121 → 1.0.122

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
@@ -92,6 +92,7 @@ export default class Repzo {
92
92
  readonly ASSET_TYPE: "asset-type";
93
93
  readonly ASSET: "asset";
94
94
  readonly ASSET_UNIT: "asset-unit";
95
+ readonly WORKORDER_PORTAL: "workorder-portal";
95
96
  };
96
97
  private _fetch;
97
98
  private _create;
@@ -1454,4 +1455,24 @@ export default class Repzo {
1454
1455
  params: Service.AssetUnit.Remove.Params
1455
1456
  ) => Promise<Service.AssetUnit.Remove.Result>;
1456
1457
  };
1458
+ workorderPortal: {
1459
+ _path: "workorder-portal";
1460
+ find: (
1461
+ params?: Service.WorkorderPortal.Find.Params
1462
+ ) => Promise<Service.WorkorderPortal.Find.Result>;
1463
+ get: (
1464
+ id: Service.WorkorderPortal.Get.ID,
1465
+ params?: Service.WorkorderPortal.Get.Params
1466
+ ) => Promise<Service.WorkorderPortal.Get.Result>;
1467
+ create: (
1468
+ body: Service.WorkorderPortal.Create.Body
1469
+ ) => Promise<Service.WorkorderPortal.Create.Result>;
1470
+ update: (
1471
+ id: Service.WorkorderPortal.Update.ID,
1472
+ body: Service.WorkorderPortal.Update.Body
1473
+ ) => Promise<Service.WorkorderPortal.Update.Result>;
1474
+ remove: (
1475
+ id: Service.WorkorderPortal.Update.ID
1476
+ ) => Promise<Service.WorkorderPortal.Remove.Result>;
1477
+ };
1457
1478
  }
package/lib/index.js CHANGED
@@ -81,6 +81,7 @@ export default class Repzo {
81
81
  ASSET_TYPE: "asset-type",
82
82
  ASSET: "asset",
83
83
  ASSET_UNIT: "asset-unit",
84
+ WORKORDER_PORTAL: "workorder-portal",
84
85
  };
85
86
  this.END_POINTS = this._end_points;
86
87
  this.client = {
@@ -2692,6 +2693,47 @@ export default class Repzo {
2692
2693
  return res;
2693
2694
  },
2694
2695
  };
2696
+ this.workorderPortal = {
2697
+ _path: this._end_points.WORKORDER_PORTAL,
2698
+ find: async (params) => {
2699
+ let res = await this._fetch(
2700
+ this.svAPIEndpoint,
2701
+ this.workorderPortal._path,
2702
+ params
2703
+ );
2704
+ return res;
2705
+ },
2706
+ get: async (id, params) => {
2707
+ return await this._fetch(
2708
+ this.svAPIEndpoint,
2709
+ this.workorderPortal._path + `/${id}`,
2710
+ params
2711
+ );
2712
+ },
2713
+ create: async (body) => {
2714
+ let res = await this._create(
2715
+ this.svAPIEndpoint,
2716
+ this.workorderPortal._path,
2717
+ body
2718
+ );
2719
+ return res;
2720
+ },
2721
+ update: async (id, body) => {
2722
+ let res = await this._update(
2723
+ this.svAPIEndpoint,
2724
+ this.workorderPortal._path + `/${id}`,
2725
+ body
2726
+ );
2727
+ return res;
2728
+ },
2729
+ remove: async (id) => {
2730
+ let res = await this._delete(
2731
+ this.svAPIEndpoint,
2732
+ this.workorderPortal._path + `/${id}`
2733
+ );
2734
+ return res;
2735
+ },
2736
+ };
2695
2737
  this.svAPIEndpoint =
2696
2738
  !options?.env || options?.env == "production"
2697
2739
  ? "https://sv.api.repzo.me"
@@ -112,6 +112,8 @@ interface ClientLocationPopulated {
112
112
  }
113
113
  interface FormPopulated {
114
114
  name: string;
115
+ _id: StringId;
116
+ local_name?: string;
115
117
  }
116
118
  interface VisitMeta {
117
119
  geo_fence_setting_visit_start: boolean;
@@ -5414,6 +5416,225 @@ export declare namespace Service {
5414
5416
  }
5415
5417
  export {};
5416
5418
  }
5419
+ namespace WorkorderPortal {
5420
+ interface Accepted_system_fields {
5421
+ field: "clients" | "clientLocation" | "asset" | "assetUnit";
5422
+ is_required: true;
5423
+ is_name_visible: Boolean;
5424
+ }
5425
+ type Default_Priority_human = "none" | "low" | "medium" | "high";
5426
+ type Default_Priority = 0 | 1 | 2 | 3;
5427
+ export interface Data {
5428
+ creator: AdminOrRep;
5429
+ name: string;
5430
+ description?: string;
5431
+ default_priority_human?: Default_Priority_human;
5432
+ default_priority?: Default_Priority;
5433
+ default_workorder_categories?: StringId[];
5434
+ teams?: string[];
5435
+ company_namespace: string[];
5436
+ allow_media_upload: "optional" | "required" | "hidden";
5437
+ allow_signature: "optional" | "required" | "hidden";
5438
+ header?: string;
5439
+ footer?: string;
5440
+ accepted_custom_fields?: string[];
5441
+ accepted_system_fields: Accepted_system_fields[];
5442
+ header_logo?: string;
5443
+ footer_logo?: string;
5444
+ createdAt?: Date;
5445
+ updatedAt?: Date;
5446
+ editor?: AdminOrRep;
5447
+ _id: StringId;
5448
+ disabled: boolean;
5449
+ website?: string;
5450
+ cover_photo?: StringId;
5451
+ activate_formV2_portal: boolean;
5452
+ activate_sales_order_portal: boolean;
5453
+ activate_workorder_request_portal: boolean;
5454
+ formV2?: StringId[];
5455
+ product_groups?: StringId[];
5456
+ geoPoint?: GeoPoint;
5457
+ location_name?: string;
5458
+ social_media_platforms?: {
5459
+ platform: StringId;
5460
+ handle?: string;
5461
+ url?: string;
5462
+ account_type: string;
5463
+ }[];
5464
+ }
5465
+ export interface CreateBody {
5466
+ creator?: AdminOrRep;
5467
+ name: string;
5468
+ description?: string;
5469
+ default_priority_human?: Default_Priority_human;
5470
+ default_priority?: Default_Priority;
5471
+ default_workorder_categories?: StringId[];
5472
+ customFields?: {
5473
+ [key: string]: any;
5474
+ };
5475
+ teams?: StringId[];
5476
+ allow_media_upload?: "optional" | "required" | "hidden";
5477
+ allow_signature?: "optional" | "required" | "hidden";
5478
+ header?: string;
5479
+ footer?: string;
5480
+ accepted_custom_fields?: StringId[];
5481
+ accepted_system_fields?: Accepted_system_fields[];
5482
+ header_logo?: string;
5483
+ footer_logo?: string;
5484
+ website?: string;
5485
+ cover_photo?: StringId;
5486
+ activate_formV2_portal: boolean;
5487
+ activate_sales_order_portal: boolean;
5488
+ activate_workorder_request_portal: boolean;
5489
+ formV2?: StringId[];
5490
+ product_groups?: StringId[];
5491
+ geoPoint?: GeoPoint;
5492
+ location_name?: string;
5493
+ social_media_platforms?: {
5494
+ platform: StringId;
5495
+ handle?: string;
5496
+ url?: string;
5497
+ account_type: string;
5498
+ }[];
5499
+ }
5500
+ export interface UpdateBody {
5501
+ name?: string;
5502
+ description?: string;
5503
+ default_priority_human?: Default_Priority_human;
5504
+ default_priority?: Default_Priority;
5505
+ default_workorder_categories?: StringId[];
5506
+ teams?: StringId[];
5507
+ allow_media_upload?: "optional" | "required" | "hidden";
5508
+ allow_signature?: "optional" | "required" | "hidden";
5509
+ header?: string;
5510
+ footer?: string;
5511
+ accepted_custom_fields?: StringId[];
5512
+ accepted_system_fields?: Accepted_system_fields[];
5513
+ header_logo?: string;
5514
+ footer_logo?: string;
5515
+ editor?: AdminOrRep;
5516
+ website?: string;
5517
+ cover_photo?: StringId;
5518
+ activate_formV2_portal?: boolean;
5519
+ activate_sales_order_portal?: boolean;
5520
+ activate_workorder_request_portal?: boolean;
5521
+ formV2?: StringId[];
5522
+ product_groups?: StringId[];
5523
+ geoPoint?: GeoPoint;
5524
+ location_name?: string;
5525
+ social_media_platforms?: {
5526
+ platform: StringId;
5527
+ handle: string;
5528
+ url: string;
5529
+ account_type: string;
5530
+ }[];
5531
+ }
5532
+ export interface PopulatedDoc {
5533
+ creator: AdminOrRep;
5534
+ name: string;
5535
+ description?: string;
5536
+ default_priority_human?: Default_Priority_human;
5537
+ default_priority?: Default_Priority;
5538
+ default_workorder_categories?: StringId[];
5539
+ default_workorder_categories_populated?: WorkorderCategoryPopulated[];
5540
+ teams?: string[];
5541
+ company_namespace: string[];
5542
+ allow_media_upload: "optional" | "required" | "hidden";
5543
+ allow_signature: "optional" | "required" | "hidden";
5544
+ header?: string;
5545
+ footer?: string;
5546
+ accepted_custom_fields?: string[];
5547
+ accepted_custom_fields_populated?: {
5548
+ [key: string]: string | number | boolean;
5549
+ }[];
5550
+ accepted_system_fields: Accepted_system_fields[];
5551
+ header_logo?: string;
5552
+ header_logo_populated?: PopulatedMediaStorage[];
5553
+ footer_logo?: string;
5554
+ footer_logo_populated?: PopulatedMediaStorage[];
5555
+ createdAt?: Date;
5556
+ updatedAt?: Date;
5557
+ editor?: AdminOrRep;
5558
+ _id: StringId;
5559
+ disabled: boolean;
5560
+ website?: string;
5561
+ cover_photo?: StringId;
5562
+ activate_formV2_portal: boolean;
5563
+ activate_sales_order_portal: boolean;
5564
+ activate_workorder_request_portal: boolean;
5565
+ formV2?: StringId[];
5566
+ formV2_populated?: FormPopulated[];
5567
+ product_groups?: Pick<
5568
+ ProductGroup.ProductGroupSchema,
5569
+ "_id" | "name" | "local_name"
5570
+ >[];
5571
+ geoPoint?: GeoPoint;
5572
+ location_name?: string;
5573
+ social_media_platforms?: {
5574
+ platform: StringId;
5575
+ handle?: string;
5576
+ url?: string;
5577
+ account_type: string;
5578
+ }[];
5579
+ }
5580
+ type SortingKeys = "default_priority" | "updatedAt" | "createdAt";
5581
+ type PopulatedKeys =
5582
+ | "default_workorder_categories"
5583
+ | "header_logo"
5584
+ | "footer_logo"
5585
+ | "accepted_custom_fields"
5586
+ | "formV2"
5587
+ | "product_groups";
5588
+ export namespace Find {
5589
+ type Params = DefaultPaginationQueryParams & {
5590
+ _id?: StringId | StringId[];
5591
+ name?: string | string[];
5592
+ default_priority?: Default_Priority | Default_Priority[];
5593
+ default_priority_human?:
5594
+ | Default_Priority_human
5595
+ | Default_Priority_human[];
5596
+ default_workorder_categories?: StringId | StringId[];
5597
+ formV2?: StringId | StringId[];
5598
+ product_groups?: StringId | StringId[];
5599
+ activate_formV2_portal?: boolean;
5600
+ activate_sales_order_portal?: boolean;
5601
+ activate_workorder_request_portal?: boolean;
5602
+ from_updatedAt?: number;
5603
+ to_updatedAt?: number;
5604
+ disabled?: boolean;
5605
+ search?: string;
5606
+ populatedKeys?: PopulatedKeys | PopulatedKeys[];
5607
+ sortBy?: {
5608
+ field: SortingKeys;
5609
+ type: "asc" | "desc";
5610
+ }[];
5611
+ };
5612
+ interface Result extends DefaultPaginationResult {
5613
+ data: Data[] | PopulatedDoc[];
5614
+ }
5615
+ }
5616
+ export namespace Get {
5617
+ type ID = string;
5618
+ interface Params {
5619
+ populatedKeys?: PopulatedKeys[];
5620
+ }
5621
+ type Result = Data | PopulatedDoc;
5622
+ }
5623
+ export namespace Create {
5624
+ type Body = CreateBody;
5625
+ type Result = Data;
5626
+ }
5627
+ export namespace Update {
5628
+ type ID = string;
5629
+ type Body = UpdateBody;
5630
+ type Result = Data;
5631
+ }
5632
+ export namespace Remove {
5633
+ type ID = string;
5634
+ type Result = Data;
5635
+ }
5636
+ export {};
5637
+ }
5417
5638
  namespace QuickConvertToPdf {
5418
5639
  export interface QuickConvertToPdfSchema {
5419
5640
  _id?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repzo",
3
- "version": "1.0.121",
3
+ "version": "1.0.122",
4
4
  "description": "Repzo TypeScript SDK",
5
5
  "main": "./lib/index.js",
6
6
  "type": "module",
package/src/index.ts CHANGED
@@ -116,6 +116,7 @@ export default class Repzo {
116
116
  ASSET_TYPE: "asset-type",
117
117
  ASSET: "asset",
118
118
  ASSET_UNIT: "asset-unit",
119
+ WORKORDER_PORTAL: "workorder-portal",
119
120
  } as const;
120
121
  public END_POINTS = this._end_points;
121
122
  private async _fetch(baseUrl: string, path: string, params?: Params) {
@@ -4092,6 +4093,60 @@ export default class Repzo {
4092
4093
  return res;
4093
4094
  },
4094
4095
  };
4096
+
4097
+ workorderPortal = {
4098
+ _path: this._end_points.WORKORDER_PORTAL,
4099
+ find: async (
4100
+ params?: Service.WorkorderPortal.Find.Params
4101
+ ): Promise<Service.WorkorderPortal.Find.Result> => {
4102
+ let res: Service.WorkorderPortal.Find.Result = await this._fetch(
4103
+ this.svAPIEndpoint,
4104
+ this.workorderPortal._path,
4105
+ params
4106
+ );
4107
+ return res;
4108
+ },
4109
+ get: async (
4110
+ id: Service.WorkorderPortal.Get.ID,
4111
+ params?: Service.WorkorderPortal.Get.Params
4112
+ ): Promise<Service.WorkorderPortal.Get.Result> => {
4113
+ return await this._fetch(
4114
+ this.svAPIEndpoint,
4115
+ this.workorderPortal._path + `/${id}`,
4116
+ params
4117
+ );
4118
+ },
4119
+ create: async (
4120
+ body: Service.WorkorderPortal.Create.Body
4121
+ ): Promise<Service.WorkorderPortal.Create.Result> => {
4122
+ let res = await this._create(
4123
+ this.svAPIEndpoint,
4124
+ this.workorderPortal._path,
4125
+ body
4126
+ );
4127
+ return res;
4128
+ },
4129
+ update: async (
4130
+ id: Service.WorkorderPortal.Update.ID,
4131
+ body: Service.WorkorderPortal.Update.Body
4132
+ ): Promise<Service.WorkorderPortal.Update.Result> => {
4133
+ let res: Service.WorkorderPortal.Update.Result = await this._update(
4134
+ this.svAPIEndpoint,
4135
+ this.workorderPortal._path + `/${id}`,
4136
+ body
4137
+ );
4138
+ return res;
4139
+ },
4140
+ remove: async (
4141
+ id: Service.WorkorderPortal.Update.ID
4142
+ ): Promise<Service.WorkorderPortal.Remove.Result> => {
4143
+ let res: Service.WorkorderPortal.Remove.Result = await this._delete(
4144
+ this.svAPIEndpoint,
4145
+ this.workorderPortal._path + `/${id}`
4146
+ );
4147
+ return res;
4148
+ },
4149
+ };
4095
4150
  }
4096
4151
 
4097
4152
  function normalizeParams(params: Params): { [key: string]: any } {
@@ -115,6 +115,8 @@ interface ClientLocationPopulated {
115
115
  }
116
116
  interface FormPopulated {
117
117
  name: string;
118
+ _id: StringId;
119
+ local_name?: string;
118
120
  }
119
121
  interface VisitMeta {
120
122
  geo_fence_setting_visit_start: boolean;
@@ -5426,6 +5428,222 @@ export namespace Service {
5426
5428
  }
5427
5429
  }
5428
5430
 
5431
+ export namespace WorkorderPortal {
5432
+ interface Accepted_system_fields {
5433
+ field: "clients" | "clientLocation" | "asset" | "assetUnit";
5434
+ is_required: true;
5435
+ is_name_visible: Boolean;
5436
+ }
5437
+ type Default_Priority_human = "none" | "low" | "medium" | "high";
5438
+ type Default_Priority = 0 | 1 | 2 | 3;
5439
+ export interface Data {
5440
+ creator: AdminOrRep;
5441
+ name: string;
5442
+ description?: string;
5443
+ default_priority_human?: Default_Priority_human;
5444
+ default_priority?: Default_Priority;
5445
+ default_workorder_categories?: StringId[];
5446
+ teams?: string[];
5447
+ company_namespace: string[];
5448
+ allow_media_upload: "optional" | "required" | "hidden";
5449
+ allow_signature: "optional" | "required" | "hidden";
5450
+ header?: string;
5451
+ footer?: string;
5452
+ accepted_custom_fields?: string[];
5453
+ accepted_system_fields: Accepted_system_fields[];
5454
+ header_logo?: string;
5455
+ footer_logo?: string;
5456
+ createdAt?: Date;
5457
+ updatedAt?: Date;
5458
+ editor?: AdminOrRep;
5459
+ _id: StringId;
5460
+ disabled: boolean;
5461
+ website?: string;
5462
+ cover_photo?: StringId;
5463
+ activate_formV2_portal: boolean;
5464
+ activate_sales_order_portal: boolean;
5465
+ activate_workorder_request_portal: boolean;
5466
+ formV2?: StringId[];
5467
+ product_groups?: StringId[];
5468
+ geoPoint?: GeoPoint;
5469
+ location_name?: string;
5470
+ social_media_platforms?: {
5471
+ platform: StringId;
5472
+ handle?: string;
5473
+ url?: string;
5474
+ account_type: string;
5475
+ }[];
5476
+ }
5477
+ export interface CreateBody {
5478
+ creator?: AdminOrRep;
5479
+ name: string;
5480
+ description?: string;
5481
+ default_priority_human?: Default_Priority_human;
5482
+ default_priority?: Default_Priority;
5483
+ default_workorder_categories?: StringId[];
5484
+ customFields?: { [key: string]: any };
5485
+ teams?: StringId[];
5486
+ allow_media_upload?: "optional" | "required" | "hidden";
5487
+ allow_signature?: "optional" | "required" | "hidden";
5488
+ header?: string;
5489
+ footer?: string;
5490
+ accepted_custom_fields?: StringId[];
5491
+ accepted_system_fields?: Accepted_system_fields[];
5492
+ header_logo?: string;
5493
+ footer_logo?: string;
5494
+ website?: string;
5495
+ cover_photo?: StringId;
5496
+ activate_formV2_portal: boolean;
5497
+ activate_sales_order_portal: boolean;
5498
+ activate_workorder_request_portal: boolean;
5499
+ formV2?: StringId[];
5500
+ product_groups?: StringId[];
5501
+ geoPoint?: GeoPoint;
5502
+ location_name?: string;
5503
+ social_media_platforms?: {
5504
+ platform: StringId;
5505
+ handle?: string;
5506
+ url?: string;
5507
+ account_type: string;
5508
+ }[];
5509
+ }
5510
+ export interface UpdateBody {
5511
+ name?: string;
5512
+ description?: string;
5513
+ default_priority_human?: Default_Priority_human;
5514
+ default_priority?: Default_Priority;
5515
+ default_workorder_categories?: StringId[];
5516
+ teams?: StringId[];
5517
+ allow_media_upload?: "optional" | "required" | "hidden";
5518
+ allow_signature?: "optional" | "required" | "hidden";
5519
+ header?: string;
5520
+ footer?: string;
5521
+ accepted_custom_fields?: StringId[];
5522
+ accepted_system_fields?: Accepted_system_fields[];
5523
+ header_logo?: string;
5524
+ footer_logo?: string;
5525
+ editor?: AdminOrRep;
5526
+ website?: string;
5527
+ cover_photo?: StringId;
5528
+ activate_formV2_portal?: boolean;
5529
+ activate_sales_order_portal?: boolean;
5530
+ activate_workorder_request_portal?: boolean;
5531
+ formV2?: StringId[];
5532
+ product_groups?: StringId[];
5533
+ geoPoint?: GeoPoint;
5534
+ location_name?: string;
5535
+ social_media_platforms?: {
5536
+ platform: StringId;
5537
+ handle: string;
5538
+ url: string;
5539
+ account_type: string;
5540
+ }[];
5541
+ }
5542
+ export interface PopulatedDoc {
5543
+ creator: AdminOrRep;
5544
+ name: string;
5545
+ description?: string;
5546
+ default_priority_human?: Default_Priority_human;
5547
+ default_priority?: Default_Priority;
5548
+ default_workorder_categories?: StringId[];
5549
+ default_workorder_categories_populated?: WorkorderCategoryPopulated[];
5550
+ teams?: string[];
5551
+ company_namespace: string[];
5552
+ allow_media_upload: "optional" | "required" | "hidden";
5553
+ allow_signature: "optional" | "required" | "hidden";
5554
+ header?: string;
5555
+ footer?: string;
5556
+ accepted_custom_fields?: string[];
5557
+ accepted_custom_fields_populated?: {
5558
+ [key: string]: string | number | boolean;
5559
+ }[];
5560
+ accepted_system_fields: Accepted_system_fields[];
5561
+ header_logo?: string;
5562
+ header_logo_populated?: PopulatedMediaStorage[];
5563
+ footer_logo?: string;
5564
+ footer_logo_populated?: PopulatedMediaStorage[];
5565
+ createdAt?: Date;
5566
+ updatedAt?: Date;
5567
+ editor?: AdminOrRep;
5568
+ _id: StringId;
5569
+ disabled: boolean;
5570
+ website?: string;
5571
+ cover_photo?: StringId;
5572
+ activate_formV2_portal: boolean;
5573
+ activate_sales_order_portal: boolean;
5574
+ activate_workorder_request_portal: boolean;
5575
+ formV2?: StringId[];
5576
+ formV2_populated?: FormPopulated[];
5577
+ product_groups?: Pick<
5578
+ ProductGroup.ProductGroupSchema,
5579
+ "_id" | "name" | "local_name"
5580
+ >[];
5581
+ geoPoint?: GeoPoint;
5582
+ location_name?: string;
5583
+ social_media_platforms?: {
5584
+ platform: StringId;
5585
+ handle?: string;
5586
+ url?: string;
5587
+ account_type: string;
5588
+ }[];
5589
+ }
5590
+
5591
+ type SortingKeys = "default_priority" | "updatedAt" | "createdAt";
5592
+ type PopulatedKeys =
5593
+ | "default_workorder_categories"
5594
+ | "header_logo"
5595
+ | "footer_logo"
5596
+ | "accepted_custom_fields"
5597
+ | "formV2"
5598
+ | "product_groups";
5599
+
5600
+ export namespace Find {
5601
+ export type Params = DefaultPaginationQueryParams & {
5602
+ _id?: StringId | StringId[];
5603
+ name?: string | string[];
5604
+ default_priority?: Default_Priority | Default_Priority[];
5605
+ default_priority_human?:
5606
+ | Default_Priority_human
5607
+ | Default_Priority_human[];
5608
+ default_workorder_categories?: StringId | StringId[];
5609
+ formV2?: StringId | StringId[];
5610
+ product_groups?: StringId | StringId[];
5611
+ activate_formV2_portal?: boolean;
5612
+ activate_sales_order_portal?: boolean;
5613
+ activate_workorder_request_portal?: boolean;
5614
+ from_updatedAt?: number;
5615
+ to_updatedAt?: number;
5616
+ disabled?: boolean;
5617
+ search?: string;
5618
+ populatedKeys?: PopulatedKeys | PopulatedKeys[];
5619
+ sortBy?: { field: SortingKeys; type: "asc" | "desc" }[];
5620
+ };
5621
+ export interface Result extends DefaultPaginationResult {
5622
+ data: Data[] | PopulatedDoc[];
5623
+ }
5624
+ }
5625
+ export namespace Get {
5626
+ export type ID = string;
5627
+ export interface Params {
5628
+ populatedKeys?: PopulatedKeys[];
5629
+ }
5630
+ export type Result = Data | PopulatedDoc;
5631
+ }
5632
+ export namespace Create {
5633
+ export type Body = CreateBody;
5634
+ export type Result = Data;
5635
+ }
5636
+ export namespace Update {
5637
+ export type ID = string;
5638
+ export type Body = UpdateBody;
5639
+ export type Result = Data;
5640
+ }
5641
+ export namespace Remove {
5642
+ export type ID = string;
5643
+ export type Result = Data;
5644
+ }
5645
+ }
5646
+
5429
5647
  export namespace QuickConvertToPdf {
5430
5648
  export interface QuickConvertToPdfSchema {
5431
5649
  _id?: string;