repzo 1.0.191 → 1.0.193

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.
@@ -5008,6 +5008,7 @@ export declare namespace Service {
5008
5008
  }
5009
5009
  type SortingKeys = "due_date" | "priority" | "updatedAt" | "createdAt" | "from_updatedAt" | "to_updatedAt" | "_id";
5010
5010
  type PopulatedKeys = "client" | "asset_units" | "asset_part_units" | "assets" | "assigned_to" | "client_location" | "workorder_categories" | "forms" | "media" | "cover_photo" | "teams" | "forms_v2" | "contract";
5011
+ type GetPopulatedKey = PopulatedKeys | "fullinvoice" | "proforma" | "activity-form-v2" | "activity-form" | "receive-parts";
5011
5012
  export namespace Find {
5012
5013
  type Params = DefaultPaginationQueryParams & {
5013
5014
  name?: string | string[];
@@ -5062,7 +5063,7 @@ export declare namespace Service {
5062
5063
  export namespace Get {
5063
5064
  type ID = string;
5064
5065
  interface Params {
5065
- populatedKeys?: PopulatedKeys[];
5066
+ populatedKeys?: GetPopulatedKey[];
5066
5067
  sortPage?: SortingKeys;
5067
5068
  }
5068
5069
  type Result = WorkorderSchema | PopulatedData;
@@ -11021,7 +11022,7 @@ export declare namespace Service {
11021
11022
  disabled: boolean;
11022
11023
  document_scan_listed: boolean;
11023
11024
  client?: StringId;
11024
- doc_type: "pdf" | "image";
11025
+ doc_type: "pdf" | "image" | "fixed-length-text";
11025
11026
  preparation_option?: {
11026
11027
  rotate?: boolean;
11027
11028
  convert_to_image: boolean;
@@ -11031,8 +11032,8 @@ export declare namespace Service {
11031
11032
  };
11032
11033
  };
11033
11034
  cart_option?: CartOptions;
11034
- ai_json_parsing_model: "gpt-4o-mini" | "gpt-4o";
11035
- ai_vision_model: "gpt-4o-mini" | "gpt-4o" | "local_vision";
11035
+ ai_json_parsing_model: "gpt-4o-mini" | "gpt-4o" | "fixed-length-text";
11036
+ ai_vision_model: "gpt-4o-mini" | "gpt-4o" | "local_vision" | "fixed-length-text";
11036
11037
  visible_columns: {
11037
11038
  key: "product_name" | "variant_name" | "product_sku" | "product_barcode" | "variant_barcode" | "variant_sku" | "price" | "qty" | "measure_unit" | "total_amount" | "total" | "code";
11038
11039
  visible: boolean;
@@ -11048,52 +11049,20 @@ export declare namespace Service {
11048
11049
  always_merge_pages_for_job?: boolean;
11049
11050
  trim_barcode_zero_from_left?: boolean;
11050
11051
  bypass_human_review?: boolean;
11052
+ fixed_length_text_layout_definition?: StringId;
11051
11053
  createdAt: Date;
11052
11054
  updatedAt: Date;
11053
11055
  }
11054
- interface PopulatedDoc {
11055
- _id: StringId;
11056
- name: string;
11057
- company_namespace: string[];
11058
- disabled: boolean;
11059
- document_scan_listed: boolean;
11060
- client?: StringId;
11056
+ type PopulatedDoc = Data & {
11061
11057
  client_populated?: Pick<Client.ClientSchema, "name" | "_id">;
11062
- doc_type: "pdf" | "image";
11063
- preparation_option?: {
11064
- rotate?: boolean;
11065
- convert_to_image: boolean;
11066
- lang?: {
11067
- en?: boolean;
11068
- ar?: boolean;
11069
- };
11070
- };
11071
- cart_option?: CartOptions;
11072
- ai_json_parsing_model: "gpt-4o-mini" | "gpt-4o";
11073
- ai_vision_model: "gpt-4o-mini" | "gpt-4o" | "local_vision";
11074
- visible_columns: {
11075
- key: "product_name" | "variant_name" | "product_sku" | "product_barcode" | "variant_barcode" | "variant_sku" | "price" | "qty" | "measure_unit" | "total_amount" | "total" | "code";
11076
- visible: boolean;
11077
- }[];
11078
- ai_parsing_prompt_amendment?: string;
11079
- ai_vision_prompt_amendment?: string;
11080
- ai_parsing_prompt_overwrite?: string;
11081
- ai_vision_prompt_overwrite?: string;
11082
- enable_ai_parsing_prompt_amendment?: boolean;
11083
- enable_ai_vision_prompt_amendment?: boolean;
11084
- enable_ai_parsing_prompt_overwrite?: boolean;
11085
- enable_ai_vision_prompt_overwrite?: boolean;
11086
- always_merge_pages_for_job?: boolean;
11087
- trim_zero_from_first?: boolean;
11088
- createdAt: Date;
11089
- updatedAt: Date;
11090
- }
11058
+ fixed_length_text_layout_definition_populated?: OcrInvoiceFixedLengthTextLayoutDefinition.Data;
11059
+ };
11091
11060
  interface CreateBody {
11092
11061
  name: string;
11093
11062
  company_namespace: string[];
11094
11063
  document_scan_listed: boolean;
11095
11064
  client?: StringId;
11096
- doc_type: "pdf" | "image";
11065
+ doc_type: "pdf" | "image" | "fixed-length-text";
11097
11066
  preparation_option?: {
11098
11067
  rotate?: boolean;
11099
11068
  convert_to_image: boolean;
@@ -11103,8 +11072,8 @@ export declare namespace Service {
11103
11072
  };
11104
11073
  };
11105
11074
  cart_option?: CartOptions;
11106
- ai_json_parsing_model: "gpt-4o-mini" | "gpt-4o";
11107
- ai_vision_model: "gpt-4o-mini" | "gpt-4o" | "local_vision";
11075
+ ai_json_parsing_model: "gpt-4o-mini" | "gpt-4o" | "fixed-length-text";
11076
+ ai_vision_model: "gpt-4o-mini" | "gpt-4o" | "local_vision" | "fixed-length-text";
11108
11077
  visible_columns: {
11109
11078
  key: "product_name" | "variant_name" | "product_sku" | "product_barcode" | "variant_barcode" | "variant_sku" | "price" | "qty" | "measure_unit" | "total_amount" | "total" | "code";
11110
11079
  visible: boolean;
@@ -11134,8 +11103,8 @@ export declare namespace Service {
11134
11103
  };
11135
11104
  };
11136
11105
  cart_option?: CartOptions;
11137
- ai_json_parsing_model: "gpt-4o-mini" | "gpt-4o";
11138
- ai_vision_model: "gpt-4o-mini" | "gpt-4o" | "local_vision";
11106
+ ai_json_parsing_model: "gpt-4o-mini" | "gpt-4o" | "fixed-length-text";
11107
+ ai_vision_model: "gpt-4o-mini" | "gpt-4o" | "local_vision" | "fixed-length-text";
11139
11108
  visible_columns: {
11140
11109
  key: "product_name" | "variant_name" | "product_sku" | "product_barcode" | "variant_barcode" | "variant_sku" | "price" | "qty" | "measure_unit" | "total_amount" | "total" | "code";
11141
11110
  visible: boolean;
@@ -11579,6 +11548,145 @@ export declare namespace Service {
11579
11548
  type Result = Data;
11580
11549
  }
11581
11550
  }
11551
+ namespace OcrInvoiceFixedLengthTextLayoutDefinition {
11552
+ interface Data {
11553
+ _id: StringId;
11554
+ name: string;
11555
+ company_namespace: string[];
11556
+ disabled: boolean;
11557
+ createdAt: Date;
11558
+ updatedAt: Date;
11559
+ }
11560
+ interface CreateBody {
11561
+ name: string;
11562
+ company_namespace?: string[];
11563
+ disabled?: boolean;
11564
+ }
11565
+ interface UpdateBody {
11566
+ _id?: StringId;
11567
+ name?: string;
11568
+ company_namespace?: string[];
11569
+ disabled?: boolean;
11570
+ createdAt?: Date;
11571
+ updatedAt?: Date;
11572
+ }
11573
+ namespace Find {
11574
+ type Params = DefaultPaginationQueryParams & {
11575
+ _id?: StringId | StringId[];
11576
+ name?: string | string[];
11577
+ disabled?: boolean | boolean[];
11578
+ search?: string;
11579
+ };
11580
+ interface Result extends DefaultPaginationResult {
11581
+ data: Data[];
11582
+ }
11583
+ }
11584
+ namespace Get {
11585
+ type ID = string;
11586
+ type Result = Data;
11587
+ }
11588
+ namespace Create {
11589
+ type Body = CreateBody;
11590
+ type Result = Data;
11591
+ }
11592
+ namespace Update {
11593
+ type ID = StringId;
11594
+ type Body = UpdateBody;
11595
+ type Result = Data;
11596
+ }
11597
+ namespace Remove {
11598
+ type ID = string;
11599
+ type Params = {};
11600
+ type Result = Data;
11601
+ }
11602
+ }
11603
+ namespace OcrInvoiceFixedLengthTextLayoutDefinitionField {
11604
+ export interface Data {
11605
+ _id: StringId;
11606
+ name: string;
11607
+ layout_definition: StringId;
11608
+ disabled: boolean;
11609
+ data_type: "Text" | "Number" | "Date";
11610
+ position: number;
11611
+ length: number;
11612
+ remarks?: string;
11613
+ decimal?: number;
11614
+ date_format?: string;
11615
+ default_ai_json_key?: "issue_date" | "reference" | "client_name" | "barcode" | "code" | "description" | "tax_amount" | "discount_amount" | "quantity" | "unit_price" | "total" | "measure_unit" | "total_amount";
11616
+ company_namespace: string[];
11617
+ createdAt: Date;
11618
+ updatedAt: Date;
11619
+ }
11620
+ export interface CreateBody {
11621
+ name: string;
11622
+ layout_definition: StringId;
11623
+ disabled?: boolean;
11624
+ data_type: "Text" | "Number" | "Date";
11625
+ position: number;
11626
+ length: number;
11627
+ remarks?: string;
11628
+ decimal?: number;
11629
+ date_format?: string;
11630
+ default_ai_json_key?: "issue_date" | "reference" | "client_name" | "barcode" | "code" | "description" | "tax_amount" | "discount_amount" | "quantity" | "unit_price" | "total" | "measure_unit" | "total_amount";
11631
+ company_namespace?: string[];
11632
+ }
11633
+ export interface UpdateBody {
11634
+ _id?: StringId;
11635
+ name?: string;
11636
+ layout_definition?: StringId;
11637
+ disabled?: boolean;
11638
+ data_type?: "Text" | "Number" | "Date";
11639
+ position?: number;
11640
+ length?: number;
11641
+ remarks?: string;
11642
+ decimal?: number;
11643
+ date_format?: string;
11644
+ default_ai_json_key?: "issue_date" | "reference" | "client_name" | "barcode" | "code" | "description" | "tax_amount" | "discount_amount" | "quantity" | "unit_price" | "total" | "measure_unit" | "total_amount";
11645
+ company_namespace?: string[];
11646
+ createdAt?: Date;
11647
+ updatedAt?: Date;
11648
+ }
11649
+ type PopulatedKeys = "layout_definition";
11650
+ export type PopulatedDoc = Data & {
11651
+ layout_definition_populated?: OcrInvoiceFixedLengthTextLayoutDefinition.Data;
11652
+ };
11653
+ export namespace Find {
11654
+ type Params = DefaultPaginationQueryParams & {
11655
+ _id?: StringId | StringId[];
11656
+ layout_definition?: StringId | StringId[];
11657
+ name?: string | string[];
11658
+ disabled?: boolean | boolean[];
11659
+ search?: string;
11660
+ sortBy?: {
11661
+ field: "_id" | "position";
11662
+ type: "asc" | "desc";
11663
+ }[];
11664
+ populatedKeys?: PopulatedKeys[];
11665
+ };
11666
+ interface Result extends DefaultPaginationResult {
11667
+ data: Data[] | PopulatedDoc[];
11668
+ }
11669
+ }
11670
+ export namespace Get {
11671
+ type ID = string;
11672
+ type Result = Data;
11673
+ }
11674
+ export namespace Create {
11675
+ type Body = CreateBody;
11676
+ type Result = Data;
11677
+ }
11678
+ export namespace Update {
11679
+ type ID = StringId;
11680
+ type Body = UpdateBody;
11681
+ type Result = Data;
11682
+ }
11683
+ export namespace Remove {
11684
+ type ID = string;
11685
+ type Params = {};
11686
+ type Result = Data;
11687
+ }
11688
+ export {};
11689
+ }
11582
11690
  namespace ActivityAiSalesOrder {
11583
11691
  interface Data {
11584
11692
  _id: string;
@@ -16002,7 +16110,7 @@ export declare namespace Service {
16002
16110
  disabled: boolean;
16003
16111
  key: string;
16004
16112
  name: string;
16005
- postion: number;
16113
+ position: number;
16006
16114
  selectable: boolean;
16007
16115
  show: "default" | "hide" | "show";
16008
16116
  totals_key?: string;
@@ -16040,6 +16148,7 @@ export declare namespace Service {
16040
16148
  _id?: StringId | StringId[];
16041
16149
  name?: string | string[];
16042
16150
  disabled?: boolean;
16151
+ position?: number;
16043
16152
  report_types?: ReportType | ReportType[];
16044
16153
  from_createdAt?: Date;
16045
16154
  to_updatedAt?: Date;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repzo",
3
- "version": "1.0.191",
3
+ "version": "1.0.193",
4
4
  "description": "Repzo TypeScript SDK",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -5578,6 +5578,14 @@ export namespace Service {
5578
5578
  | "teams"
5579
5579
  | "forms_v2"
5580
5580
  | "contract";
5581
+
5582
+ type GetPopulatedKey =
5583
+ | PopulatedKeys
5584
+ | "fullinvoice"
5585
+ | "proforma"
5586
+ | "activity-form-v2"
5587
+ | "activity-form"
5588
+ | "receive-parts";
5581
5589
  export namespace Find {
5582
5590
  export type Params = DefaultPaginationQueryParams & {
5583
5591
  name?: string | string[];
@@ -5629,7 +5637,7 @@ export namespace Service {
5629
5637
  export namespace Get {
5630
5638
  export type ID = string;
5631
5639
  export interface Params {
5632
- populatedKeys?: PopulatedKeys[];
5640
+ populatedKeys?: GetPopulatedKey[];
5633
5641
  sortPage?: SortingKeys;
5634
5642
  }
5635
5643
  export type Result = WorkorderSchema | PopulatedData;
@@ -11591,7 +11599,7 @@ export namespace Service {
11591
11599
  disabled: boolean;
11592
11600
  document_scan_listed: boolean;
11593
11601
  client?: StringId;
11594
- doc_type: "pdf" | "image";
11602
+ doc_type: "pdf" | "image" | "fixed-length-text";
11595
11603
  preparation_option?: {
11596
11604
  rotate?: boolean;
11597
11605
  convert_to_image: boolean;
@@ -11601,8 +11609,12 @@ export namespace Service {
11601
11609
  };
11602
11610
  };
11603
11611
  cart_option?: CartOptions;
11604
- ai_json_parsing_model: "gpt-4o-mini" | "gpt-4o";
11605
- ai_vision_model: "gpt-4o-mini" | "gpt-4o" | "local_vision";
11612
+ ai_json_parsing_model: "gpt-4o-mini" | "gpt-4o" | "fixed-length-text";
11613
+ ai_vision_model:
11614
+ | "gpt-4o-mini"
11615
+ | "gpt-4o"
11616
+ | "local_vision"
11617
+ | "fixed-length-text";
11606
11618
  visible_columns: {
11607
11619
  key:
11608
11620
  | "product_name"
@@ -11630,64 +11642,20 @@ export namespace Service {
11630
11642
  always_merge_pages_for_job?: boolean;
11631
11643
  trim_barcode_zero_from_left?: boolean;
11632
11644
  bypass_human_review?: boolean;
11645
+ fixed_length_text_layout_definition?: StringId;
11633
11646
  createdAt: Date;
11634
11647
  updatedAt: Date;
11635
11648
  }
11636
- export interface PopulatedDoc {
11637
- _id: StringId;
11638
- name: string;
11639
- company_namespace: string[];
11640
- disabled: boolean;
11641
- document_scan_listed: boolean;
11642
- client?: StringId;
11649
+ export type PopulatedDoc = Data & {
11643
11650
  client_populated?: Pick<Client.ClientSchema, "name" | "_id">;
11644
- doc_type: "pdf" | "image";
11645
- preparation_option?: {
11646
- rotate?: boolean;
11647
- convert_to_image: boolean;
11648
- lang?: {
11649
- en?: boolean;
11650
- ar?: boolean;
11651
- };
11652
- };
11653
- cart_option?: CartOptions;
11654
- ai_json_parsing_model: "gpt-4o-mini" | "gpt-4o";
11655
- ai_vision_model: "gpt-4o-mini" | "gpt-4o" | "local_vision";
11656
- visible_columns: {
11657
- key:
11658
- | "product_name"
11659
- | "variant_name"
11660
- | "product_sku"
11661
- | "product_barcode"
11662
- | "variant_barcode"
11663
- | "variant_sku"
11664
- | "price"
11665
- | "qty"
11666
- | "measure_unit"
11667
- | "total_amount"
11668
- | "total"
11669
- | "code";
11670
- visible: boolean;
11671
- }[];
11672
- ai_parsing_prompt_amendment?: string;
11673
- ai_vision_prompt_amendment?: string;
11674
- ai_parsing_prompt_overwrite?: string;
11675
- ai_vision_prompt_overwrite?: string;
11676
- enable_ai_parsing_prompt_amendment?: boolean;
11677
- enable_ai_vision_prompt_amendment?: boolean;
11678
- enable_ai_parsing_prompt_overwrite?: boolean;
11679
- enable_ai_vision_prompt_overwrite?: boolean;
11680
- always_merge_pages_for_job?: boolean;
11681
- trim_zero_from_first?: boolean;
11682
- createdAt: Date;
11683
- updatedAt: Date;
11684
- }
11651
+ fixed_length_text_layout_definition_populated?: OcrInvoiceFixedLengthTextLayoutDefinition.Data;
11652
+ };
11685
11653
  export interface CreateBody {
11686
11654
  name: string;
11687
11655
  company_namespace: string[];
11688
11656
  document_scan_listed: boolean;
11689
11657
  client?: StringId;
11690
- doc_type: "pdf" | "image";
11658
+ doc_type: "pdf" | "image" | "fixed-length-text";
11691
11659
  preparation_option?: {
11692
11660
  rotate?: boolean;
11693
11661
  convert_to_image: boolean;
@@ -11697,8 +11665,12 @@ export namespace Service {
11697
11665
  };
11698
11666
  };
11699
11667
  cart_option?: CartOptions;
11700
- ai_json_parsing_model: "gpt-4o-mini" | "gpt-4o";
11701
- ai_vision_model: "gpt-4o-mini" | "gpt-4o" | "local_vision";
11668
+ ai_json_parsing_model: "gpt-4o-mini" | "gpt-4o" | "fixed-length-text";
11669
+ ai_vision_model:
11670
+ | "gpt-4o-mini"
11671
+ | "gpt-4o"
11672
+ | "local_vision"
11673
+ | "fixed-length-text";
11702
11674
  visible_columns: {
11703
11675
  key:
11704
11676
  | "product_name"
@@ -11740,8 +11712,12 @@ export namespace Service {
11740
11712
  };
11741
11713
  };
11742
11714
  cart_option?: CartOptions;
11743
- ai_json_parsing_model: "gpt-4o-mini" | "gpt-4o";
11744
- ai_vision_model: "gpt-4o-mini" | "gpt-4o" | "local_vision";
11715
+ ai_json_parsing_model: "gpt-4o-mini" | "gpt-4o" | "fixed-length-text";
11716
+ ai_vision_model:
11717
+ | "gpt-4o-mini"
11718
+ | "gpt-4o"
11719
+ | "local_vision"
11720
+ | "fixed-length-text";
11745
11721
  visible_columns: {
11746
11722
  key:
11747
11723
  | "product_name"
@@ -12292,6 +12268,189 @@ export namespace Service {
12292
12268
  }
12293
12269
  }
12294
12270
 
12271
+ export namespace OcrInvoiceFixedLengthTextLayoutDefinition {
12272
+ export interface Data {
12273
+ _id: StringId;
12274
+ name: string;
12275
+ company_namespace: string[];
12276
+ disabled: boolean;
12277
+ createdAt: Date;
12278
+ updatedAt: Date;
12279
+ }
12280
+ export interface CreateBody {
12281
+ name: string;
12282
+ company_namespace?: string[];
12283
+ disabled?: boolean;
12284
+ }
12285
+ export interface UpdateBody {
12286
+ _id?: StringId;
12287
+ name?: string;
12288
+ company_namespace?: string[];
12289
+ disabled?: boolean;
12290
+ createdAt?: Date;
12291
+ updatedAt?: Date;
12292
+ }
12293
+
12294
+ export namespace Find {
12295
+ export type Params = DefaultPaginationQueryParams & {
12296
+ _id?: StringId | StringId[];
12297
+ name?: string | string[];
12298
+ disabled?: boolean | boolean[];
12299
+ search?: string;
12300
+ };
12301
+ export interface Result extends DefaultPaginationResult {
12302
+ data: Data[];
12303
+ }
12304
+ }
12305
+ export namespace Get {
12306
+ export type ID = string;
12307
+ export type Result = Data;
12308
+ }
12309
+ export namespace Create {
12310
+ export type Body = CreateBody;
12311
+ export type Result = Data;
12312
+ }
12313
+ export namespace Update {
12314
+ export type ID = StringId;
12315
+ export type Body = UpdateBody;
12316
+ export type Result = Data;
12317
+ }
12318
+ export namespace Remove {
12319
+ export type ID = string;
12320
+ export type Params = {};
12321
+ export type Result = Data;
12322
+ }
12323
+ }
12324
+
12325
+ export namespace OcrInvoiceFixedLengthTextLayoutDefinitionField {
12326
+ export interface Data {
12327
+ _id: StringId;
12328
+ name: string;
12329
+ layout_definition: StringId;
12330
+ disabled: boolean;
12331
+ data_type: "Text" | "Number" | "Date";
12332
+ position: number;
12333
+ length: number;
12334
+ remarks?: string;
12335
+ decimal?: number;
12336
+ date_format?: string;
12337
+ default_ai_json_key?:
12338
+ | "issue_date"
12339
+ | "reference"
12340
+ | "client_name"
12341
+ | "barcode"
12342
+ | "code"
12343
+ | "description"
12344
+ | "tax_amount"
12345
+ | "discount_amount"
12346
+ | "quantity"
12347
+ | "unit_price"
12348
+ | "total"
12349
+ | "measure_unit"
12350
+ | "total_amount";
12351
+ company_namespace: string[];
12352
+ createdAt: Date;
12353
+ updatedAt: Date;
12354
+ }
12355
+ export interface CreateBody {
12356
+ name: string;
12357
+ layout_definition: StringId;
12358
+ disabled?: boolean;
12359
+ data_type: "Text" | "Number" | "Date";
12360
+ position: number;
12361
+ length: number;
12362
+ remarks?: string;
12363
+ decimal?: number;
12364
+ date_format?: string;
12365
+ default_ai_json_key?:
12366
+ | "issue_date"
12367
+ | "reference"
12368
+ | "client_name"
12369
+ | "barcode"
12370
+ | "code"
12371
+ | "description"
12372
+ | "tax_amount"
12373
+ | "discount_amount"
12374
+ | "quantity"
12375
+ | "unit_price"
12376
+ | "total"
12377
+ | "measure_unit"
12378
+ | "total_amount";
12379
+ company_namespace?: string[];
12380
+ }
12381
+ export interface UpdateBody {
12382
+ _id?: StringId;
12383
+ name?: string;
12384
+ layout_definition?: StringId;
12385
+ disabled?: boolean;
12386
+ data_type?: "Text" | "Number" | "Date";
12387
+ position?: number;
12388
+ length?: number;
12389
+ remarks?: string;
12390
+ decimal?: number;
12391
+ date_format?: string;
12392
+ default_ai_json_key?:
12393
+ | "issue_date"
12394
+ | "reference"
12395
+ | "client_name"
12396
+ | "barcode"
12397
+ | "code"
12398
+ | "description"
12399
+ | "tax_amount"
12400
+ | "discount_amount"
12401
+ | "quantity"
12402
+ | "unit_price"
12403
+ | "total"
12404
+ | "measure_unit"
12405
+ | "total_amount";
12406
+ company_namespace?: string[];
12407
+ createdAt?: Date;
12408
+ updatedAt?: Date;
12409
+ }
12410
+
12411
+ type PopulatedKeys = "layout_definition";
12412
+
12413
+ export type PopulatedDoc = Data & {
12414
+ layout_definition_populated?: OcrInvoiceFixedLengthTextLayoutDefinition.Data;
12415
+ };
12416
+
12417
+ export namespace Find {
12418
+ export type Params = DefaultPaginationQueryParams & {
12419
+ _id?: StringId | StringId[];
12420
+ layout_definition?: StringId | StringId[];
12421
+ name?: string | string[];
12422
+ disabled?: boolean | boolean[];
12423
+ search?: string;
12424
+ sortBy?: {
12425
+ field: "_id" | "position";
12426
+ type: "asc" | "desc";
12427
+ }[];
12428
+ populatedKeys?: PopulatedKeys[];
12429
+ };
12430
+ export interface Result extends DefaultPaginationResult {
12431
+ data: Data[] | PopulatedDoc[];
12432
+ }
12433
+ }
12434
+ export namespace Get {
12435
+ export type ID = string;
12436
+ export type Result = Data;
12437
+ }
12438
+ export namespace Create {
12439
+ export type Body = CreateBody;
12440
+ export type Result = Data;
12441
+ }
12442
+ export namespace Update {
12443
+ export type ID = StringId;
12444
+ export type Body = UpdateBody;
12445
+ export type Result = Data;
12446
+ }
12447
+ export namespace Remove {
12448
+ export type ID = string;
12449
+ export type Params = {};
12450
+ export type Result = Data;
12451
+ }
12452
+ }
12453
+
12295
12454
  export namespace ActivityAiSalesOrder {
12296
12455
  export interface Data {
12297
12456
  _id: string;
@@ -18113,7 +18272,7 @@ export namespace Service {
18113
18272
  disabled: boolean;
18114
18273
  key: string;
18115
18274
  name: string;
18116
- postion: number;
18275
+ position: number;
18117
18276
  selectable: boolean;
18118
18277
  show: "default" | "hide" | "show";
18119
18278
  totals_key?: string;
@@ -18154,6 +18313,7 @@ export namespace Service {
18154
18313
  _id?: StringId | StringId[];
18155
18314
  name?: string | string[];
18156
18315
  disabled?: boolean;
18316
+ position?: number;
18157
18317
  report_types?: ReportType | ReportType[];
18158
18318
  from_createdAt?: Date;
18159
18319
  to_updatedAt?: Date;