repzo 1.0.120 → 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.
@@ -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;
@@ -5482,6 +5703,7 @@ export declare namespace Service {
5482
5703
  qr_code_tlv?: string;
5483
5704
  processable?: boolean;
5484
5705
  client_id: string;
5706
+ client_balance?: number;
5485
5707
  client_name: string;
5486
5708
  comment?: string;
5487
5709
  return_comment?: string;
@@ -6080,6 +6302,7 @@ export declare namespace Service {
6080
6302
  qr_code_tlv?: string;
6081
6303
  processable?: boolean;
6082
6304
  client_name: string;
6305
+ client_balance?: number;
6083
6306
  comment?: string;
6084
6307
  return_comment?: string;
6085
6308
  creator: AdminCreator | RepCreator | ClientCreator;
@@ -12942,6 +13165,508 @@ export declare namespace Service {
12942
13165
  type Result = Settings.Data;
12943
13166
  }
12944
13167
  }
13168
+ namespace ClientLocation {
13169
+ export interface Data {
13170
+ _id: StringId;
13171
+ creator: AdminOrRep;
13172
+ editor?: AdminOrRep;
13173
+ name: string;
13174
+ local_name?: string;
13175
+ client: StringId;
13176
+ description?: string;
13177
+ address?: string;
13178
+ contacts?: StringId[];
13179
+ disabled: boolean;
13180
+ customFields?: {};
13181
+ media?: StringId[];
13182
+ cover_photo?: StringId;
13183
+ integration_meta?: {
13184
+ [key: string]: any;
13185
+ };
13186
+ company_namespace: string[];
13187
+ geoPoint?: GeoPoint;
13188
+ createdAt: string;
13189
+ updatedAt: string;
13190
+ }
13191
+ export interface CreateBody {
13192
+ creator?: AdminOrRep;
13193
+ name: string;
13194
+ local_name?: string;
13195
+ client: StringId;
13196
+ description?: string;
13197
+ address?: string;
13198
+ contacts?: StringId[];
13199
+ disabled: boolean;
13200
+ customFields?: {};
13201
+ media?: StringId[];
13202
+ cover_photo?: StringId;
13203
+ integration_meta?: {
13204
+ [key: string]: any;
13205
+ };
13206
+ geoPoint?: GeoPoint;
13207
+ }
13208
+ export interface UpdateBody {
13209
+ editor?: AdminOrRep;
13210
+ name?: string;
13211
+ local_name?: string;
13212
+ client?: StringId;
13213
+ description?: string;
13214
+ address?: string;
13215
+ contacts?: StringId[];
13216
+ customFields?: {};
13217
+ media?: StringId[];
13218
+ cover_photo?: StringId;
13219
+ integration_meta?: {
13220
+ [key: string]: any;
13221
+ };
13222
+ geoPoint?: GeoPoint;
13223
+ }
13224
+ export interface PopulatedDoc {
13225
+ _id: StringId;
13226
+ creator: AdminOrRep;
13227
+ editor?: AdminOrRep;
13228
+ local_name?: string;
13229
+ name: string;
13230
+ client:
13231
+ | StringId
13232
+ | (Pick<Client.ClientSchema, "name" | "client_code" | "contacts"> & {
13233
+ contacts:
13234
+ | StringId[]
13235
+ | Pick<ClientContact.ClientContactSchema, "name">[];
13236
+ });
13237
+ description?: string;
13238
+ address?: string;
13239
+ contacts?: StringId[] | ClientContact.ClientContactSchema[];
13240
+ disabled: boolean;
13241
+ customFields?: {};
13242
+ media?: StringId[] | PopulatedMediaStorage[];
13243
+ cover_photo?: StringId | PopulatedMediaStorage;
13244
+ integration_meta?: {
13245
+ [key: string]: any;
13246
+ };
13247
+ company_namespace: string[];
13248
+ geoPoint?: GeoPoint;
13249
+ createdAt: string;
13250
+ updatedAt: string;
13251
+ }
13252
+ type PopulatedKeys =
13253
+ | "client"
13254
+ | "contacts"
13255
+ | "media"
13256
+ | "cover_photo"
13257
+ | "customFields";
13258
+ export namespace Find {
13259
+ type Params = DefaultPaginationQueryParams & {
13260
+ name?: string | string[];
13261
+ client?: StringId | StringId[];
13262
+ _id?: StringId | StringId[];
13263
+ from_updatedAt?: number;
13264
+ to_updatedAt?: number;
13265
+ from_createdAt?: number;
13266
+ to_createdAt?: number;
13267
+ search?: string;
13268
+ sortBy?: {
13269
+ field: "name" | "client";
13270
+ type: "asc" | "desc";
13271
+ }[];
13272
+ populatedKeys?: PopulatedKeys[];
13273
+ };
13274
+ interface Result extends DefaultPaginationResult {
13275
+ data: Data[] & PopulatedDoc[];
13276
+ }
13277
+ }
13278
+ export namespace Get {
13279
+ type ID = string;
13280
+ type Params = {
13281
+ populatedKeys?: PopulatedKeys[];
13282
+ };
13283
+ type Result = Data & PopulatedDoc;
13284
+ }
13285
+ export namespace Update {
13286
+ type ID = StringId;
13287
+ type Body = UpdateBody;
13288
+ type Result = Data;
13289
+ }
13290
+ export namespace Create {
13291
+ type Body = CreateBody;
13292
+ type Result = Data;
13293
+ }
13294
+ export namespace Remove {
13295
+ type ID = string;
13296
+ type Params = {};
13297
+ type Result = Data;
13298
+ }
13299
+ export {};
13300
+ }
13301
+ namespace AssetType {
13302
+ interface Data {
13303
+ _id: StringId;
13304
+ creator: AdminOrRep;
13305
+ editor?: AdminOrRep;
13306
+ name: string;
13307
+ color: string;
13308
+ local_name?: string;
13309
+ disabled: boolean;
13310
+ integration_meta?: {
13311
+ [key: string]: any;
13312
+ };
13313
+ company_namespace: string[];
13314
+ createdAt: string;
13315
+ updatedAt: string;
13316
+ }
13317
+ interface CreateBody {
13318
+ creator?: AdminOrRep;
13319
+ name: string;
13320
+ local_name?: string;
13321
+ color: string;
13322
+ disabled?: boolean;
13323
+ integration_meta?: {
13324
+ [key: string]: any;
13325
+ };
13326
+ }
13327
+ interface UpdateBody {
13328
+ editor?: AdminOrRep;
13329
+ name?: string;
13330
+ local_name?: string;
13331
+ color?: string;
13332
+ disabled?: boolean;
13333
+ integration_meta?: {
13334
+ [key: string]: any;
13335
+ };
13336
+ }
13337
+ namespace Find {
13338
+ type Params = DefaultPaginationQueryParams & {
13339
+ _id?: StringId | StringId[];
13340
+ search?: string;
13341
+ name?: string | string[];
13342
+ from_updatedAt?: number;
13343
+ to_updatedAt?: number;
13344
+ sortBy?: {
13345
+ field: "color" | "name";
13346
+ type: "asc" | "desc";
13347
+ }[];
13348
+ };
13349
+ interface Result extends DefaultPaginationResult {
13350
+ data: Data[];
13351
+ }
13352
+ }
13353
+ namespace Get {
13354
+ type ID = string;
13355
+ type Result = Data;
13356
+ }
13357
+ namespace Update {
13358
+ type ID = StringId;
13359
+ type Body = UpdateBody;
13360
+ type Result = Data;
13361
+ }
13362
+ namespace Create {
13363
+ type Body = CreateBody;
13364
+ type Result = Data;
13365
+ }
13366
+ namespace Remove {
13367
+ type ID = string;
13368
+ type Params = {};
13369
+ type Result = Data;
13370
+ }
13371
+ }
13372
+ namespace Asset {
13373
+ export interface Data {
13374
+ _id: StringId;
13375
+ creator: AdminCreator;
13376
+ editor?: AdminCreator;
13377
+ name: string;
13378
+ local_name?: string;
13379
+ description?: string;
13380
+ barcode?: string;
13381
+ model?: string;
13382
+ manufacturer?: string;
13383
+ year?: string;
13384
+ asset_types: StringId[];
13385
+ location: StringId;
13386
+ customFields?: {
13387
+ [key: string]: string | number | boolean;
13388
+ };
13389
+ disabled: boolean;
13390
+ integration_meta?: {
13391
+ [key: string]: any;
13392
+ };
13393
+ media?: StringId[];
13394
+ cover_photo?: StringId;
13395
+ company_namespace: string[];
13396
+ createdAt: string;
13397
+ updatedAt: string;
13398
+ }
13399
+ export interface CreateBody {
13400
+ creator?: AdminCreator;
13401
+ name: string;
13402
+ local_name?: string;
13403
+ description?: string;
13404
+ barcode?: string;
13405
+ model?: string;
13406
+ manufacturer?: string;
13407
+ year?: string;
13408
+ asset_types: StringId[];
13409
+ location: StringId;
13410
+ customFields?: {};
13411
+ disabled?: boolean;
13412
+ media?: StringId[];
13413
+ cover_photo?: StringId;
13414
+ integration_meta?: {
13415
+ [key: string]: any;
13416
+ };
13417
+ }
13418
+ export interface UpdateBody {
13419
+ editor?: AdminCreator;
13420
+ name?: string;
13421
+ local_name?: string;
13422
+ description?: string;
13423
+ barcode?: string;
13424
+ model?: string;
13425
+ manufacturer?: string;
13426
+ year?: string;
13427
+ asset_types?: StringId[];
13428
+ location?: StringId;
13429
+ customFields?: {};
13430
+ disabled?: boolean;
13431
+ media?: StringId[];
13432
+ cover_photo?: StringId;
13433
+ integration_meta?: {
13434
+ [key: string]: any;
13435
+ };
13436
+ }
13437
+ export interface PopulatedDoc {
13438
+ _id: StringId;
13439
+ creator: AdminCreator;
13440
+ editor?: AdminCreator;
13441
+ name: string;
13442
+ local_name?: string;
13443
+ description?: string;
13444
+ barcode?: string;
13445
+ model?: string;
13446
+ manufacturer?: string;
13447
+ year?: string;
13448
+ asset_types: StringId[] | AssetType.Data[];
13449
+ location:
13450
+ | StringId
13451
+ | ClientLocation.Data
13452
+ | (ClientLocation.Data & {
13453
+ client?: Pick<
13454
+ Client.ClientSchema,
13455
+ "name" | "_id" | "client_code" | "local_name"
13456
+ >;
13457
+ });
13458
+ media?: StringId[] | PopulatedMediaStorage[];
13459
+ cover_photo?: StringId | PopulatedMediaStorage;
13460
+ customFields?: {
13461
+ [key: string]: string | number | boolean;
13462
+ };
13463
+ disabled: boolean;
13464
+ integration_meta?: {
13465
+ [key: string]: any;
13466
+ };
13467
+ company_namespace: string[];
13468
+ createdAt: string;
13469
+ updatedAt: string;
13470
+ }
13471
+ type PopulatedKeys =
13472
+ | "asset_types"
13473
+ | "location"
13474
+ | "media"
13475
+ | "cover_photo"
13476
+ | "locationClient"
13477
+ | "customFields";
13478
+ export namespace Find {
13479
+ type Params = DefaultPaginationQueryParams & {
13480
+ name?: string | string[];
13481
+ _id?: StringId | StringId[];
13482
+ from_updatedAt?: number;
13483
+ to_updatedAt?: number;
13484
+ asset_types?: StringId | StringId[];
13485
+ location?: StringId | StringId[];
13486
+ from_createdAt?: number;
13487
+ to_createdAt?: number;
13488
+ search?: string;
13489
+ sortBy?: {
13490
+ field: "barcode" | "name" | "model";
13491
+ type: "asc" | "desc";
13492
+ }[];
13493
+ populatedKeys?: PopulatedKeys[];
13494
+ };
13495
+ interface Result extends DefaultPaginationResult {
13496
+ data: Data[] & PopulatedDoc[];
13497
+ }
13498
+ }
13499
+ export namespace Get {
13500
+ type ID = string;
13501
+ type Params = {
13502
+ populatedKeys?: PopulatedKeys[];
13503
+ };
13504
+ type Result = Data & PopulatedDoc;
13505
+ }
13506
+ export namespace Update {
13507
+ type ID = StringId;
13508
+ type Body = UpdateBody;
13509
+ type Result = Data;
13510
+ }
13511
+ export namespace Create {
13512
+ type Body = CreateBody;
13513
+ type Result = Data;
13514
+ }
13515
+ export namespace Remove {
13516
+ type ID = string;
13517
+ type Params = {};
13518
+ type Result = Data;
13519
+ }
13520
+ export {};
13521
+ }
13522
+ namespace AssetUnit {
13523
+ export interface Data {
13524
+ _id: StringId;
13525
+ creator: AdminOrRep;
13526
+ editor?: AdminOrRep;
13527
+ name: string;
13528
+ asset: StringId;
13529
+ location?: StringId;
13530
+ local_name?: string;
13531
+ description?: string;
13532
+ serial_nu?: string;
13533
+ customFields?: {};
13534
+ disabled: boolean;
13535
+ integration_meta?: {
13536
+ [key: string]: any;
13537
+ };
13538
+ media?: StringId[];
13539
+ cover_photo?: StringId;
13540
+ comany_namespace: string[];
13541
+ createdAt: string;
13542
+ updatedAt: string;
13543
+ }
13544
+ export interface CreateBody {
13545
+ creator?: AdminOrRep;
13546
+ name: string;
13547
+ asset: StringId;
13548
+ location?: StringId;
13549
+ local_name?: string;
13550
+ description?: string;
13551
+ serial_nu?: string;
13552
+ customFields?: {};
13553
+ integration_meta?: {
13554
+ [key: string]: any;
13555
+ };
13556
+ media?: StringId[];
13557
+ cover_photo?: StringId;
13558
+ }
13559
+ export interface UpdateBody {
13560
+ editor?: AdminOrRep;
13561
+ name?: string;
13562
+ asset?: StringId;
13563
+ location?: StringId;
13564
+ local_name?: string;
13565
+ description?: string;
13566
+ serial_nu?: string;
13567
+ customFields?: {};
13568
+ integration_meta?: {
13569
+ [key: string]: any;
13570
+ };
13571
+ media?: StringId[] | string[];
13572
+ cover_photo?: StringId;
13573
+ }
13574
+ type assetPopulated =
13575
+ | StringId
13576
+ | Asset.Data
13577
+ | (Asset.Data & {
13578
+ location?: ClientLocation.Data;
13579
+ })
13580
+ | (Asset.Data & {
13581
+ location?:
13582
+ | ClientLocation.Data
13583
+ | (ClientLocation.Data & {
13584
+ client: Pick<
13585
+ Client.ClientSchema,
13586
+ "name" | "client_code" | "_id"
13587
+ >;
13588
+ });
13589
+ });
13590
+ type locationPopulated =
13591
+ | StringId
13592
+ | ClientLocation.Data
13593
+ | (ClientLocation.Data & {
13594
+ client: Pick<Client.ClientSchema, "name" | "_id" | "client_code">;
13595
+ });
13596
+ export interface PopulatedDoc {
13597
+ _id: StringId;
13598
+ creator: AdminOrRep;
13599
+ editor?: AdminOrRep;
13600
+ name: string;
13601
+ asset: assetPopulated;
13602
+ location?: locationPopulated;
13603
+ local_name?: string;
13604
+ description?: string;
13605
+ serial_nu?: string;
13606
+ customFields?: {};
13607
+ disabled: boolean;
13608
+ integration_meta?: {
13609
+ [key: string]: any;
13610
+ };
13611
+ media?: StringId[] | PopulatedMediaStorage[];
13612
+ cover_photo?: StringId | PopulatedMediaStorage;
13613
+ comany_namespace: string[];
13614
+ createdAt: string;
13615
+ updatedAt: string;
13616
+ }
13617
+ type PopulatedKeys =
13618
+ | "asset"
13619
+ | "location"
13620
+ | "locationClient"
13621
+ | "assetLocation"
13622
+ | "assetLocationClient"
13623
+ | "media"
13624
+ | "cover_photo"
13625
+ | "customFields";
13626
+ export namespace Find {
13627
+ type Params = DefaultPaginationQueryParams & {
13628
+ name?: string | string[];
13629
+ _id?: StringId | StringId[];
13630
+ from_updatedAt?: number;
13631
+ to_updatedAt?: number;
13632
+ asset?: StringId | StringId[];
13633
+ location?: StringId | StringId[];
13634
+ from_createdAt?: number;
13635
+ to_createdAt?: number;
13636
+ search?: string;
13637
+ sortBy?: {
13638
+ field: "asset" | "name";
13639
+ type: "asc" | "desc";
13640
+ }[];
13641
+ populatedKeys?: PopulatedKeys[];
13642
+ };
13643
+ interface Result extends DefaultPaginationResult {
13644
+ data: Data[] & PopulatedDoc[];
13645
+ }
13646
+ }
13647
+ export namespace Get {
13648
+ type ID = string;
13649
+ type Params = {
13650
+ populatedKeys?: PopulatedKeys[];
13651
+ };
13652
+ type Result = Data & PopulatedDoc;
13653
+ }
13654
+ export namespace Update {
13655
+ type ID = StringId;
13656
+ type Body = UpdateBody;
13657
+ type Result = Data;
13658
+ }
13659
+ export namespace Create {
13660
+ type Body = CreateBody;
13661
+ type Result = Data;
13662
+ }
13663
+ export namespace Remove {
13664
+ type ID = string;
13665
+ type Params = {};
13666
+ type Result = Data;
13667
+ }
13668
+ export {};
13669
+ }
12945
13670
  }
12946
13671
  export type StringId = string;
12947
13672
  export type NameSpaces = string[];