repzo 1.0.251 → 1.0.252

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
@@ -126,6 +126,9 @@ export declare const end_points: {
126
126
  readonly LATEST_SERIAL: "latest-serial";
127
127
  readonly FORM_V2: "form-v2";
128
128
  readonly ACTIVITY_FORM_V2_RESULT: "activity-form-v2-result";
129
+ readonly LINE_CLASSIFICATION: "line-classification";
130
+ readonly LINE: "line";
131
+ readonly CLIENT_LINE: "client-line";
129
132
  };
130
133
  export type EndPoints = (typeof end_points)[keyof typeof end_points];
131
134
  export declare const availableService: readonly ["client", "product", "variant", "category", "sub_category", "brand", "product_group", "tax", "measureunit", "measureunitFamily", "media", "priceList", "priceListItem", "team", "returnReason", "rep", "tag", "warehouse", "route", "productModifiersGroup", "channel", "speciality", "clientContact", "paymentTerm", "bank", "bank_list", "customStatus", "customList", "customListItem", "inventoryAdjustmentReason", "workorder", "workorderRequest", "supplier", "quickConvertToPdf", "visit", "activityFeedback", "activityFeedbackV2", "feedbackOption", "invoice", "proforma", "payment", "refund", "settlement", "voidSettlement", "check", "day", "receivingMaterial", "adjustAccount", "transfer", "msl", "mslProduct", "mediaStorage", "storecheckTemplate", "activityStorecheck", "adjustInventory", "inventory", "integrationApp", "joinActionsWebHook", "patchAction", "updateIntegrationMeta", "assetPartType", "assetPart", "assetPartUnit", "assetPartReceival", "assetPartTransfer", "returnAssetPartUnit", "storeAssetPartUnit", "ocrInvoiceJobTemplate", "ocrInvoiceJobGroup", "activityAiSalesOrder", "ocrInvoiceJob", "ocrInvoiceJobPage", "settings", "mailUnsubscribe", "approvalRequest", "safeInvoiceSerialCounter", "clientLocation", "assetType", "asset", "assetUnit", "workorderPortal", "approval", "workorderCategory", "contract", "contractInstallment", "repBalanceSummary", "workorderPortalLink", "customField", "salesAnalyticsReport", "clmPresentation", "clmSequence", "clmSlide", "clmFetch", "pdfMergeField"];
@@ -267,6 +270,9 @@ export default class Repzo {
267
270
  readonly LATEST_SERIAL: "latest-serial";
268
271
  readonly FORM_V2: "form-v2";
269
272
  readonly ACTIVITY_FORM_V2_RESULT: "activity-form-v2-result";
273
+ readonly LINE_CLASSIFICATION: "line-classification";
274
+ readonly LINE: "line";
275
+ readonly CLIENT_LINE: "client-line";
270
276
  };
271
277
  private _retryRequest;
272
278
  private _fetch;
@@ -1233,4 +1239,30 @@ export default class Repzo {
1233
1239
  create: (body: Service.ActivityFormV2Result.Create.Body) => Promise<Service.ActivityFormV2Result.Create.Result>;
1234
1240
  update: (id: Service.ActivityFormV2Result.Update.ID, body: Service.ActivityFormV2Result.Update.Body) => Promise<Service.ActivityFormV2Result.Update.Result>;
1235
1241
  };
1242
+ lineClassification: {
1243
+ _path: "line-classification";
1244
+ find: (params?: Service.LineClassification.Find.Params) => Promise<Service.LineClassification.Find.Result>;
1245
+ get: (id: Service.LineClassification.Get.ID, params?: Service.LineClassification.Get.Params) => Promise<Service.LineClassification.Get.Result>;
1246
+ create: (body: Service.LineClassification.Create.Body) => Promise<Service.LineClassification.Create.Result>;
1247
+ update: (id: Service.LineClassification.Update.ID, body: Service.LineClassification.Update.Body) => Promise<Service.LineClassification.Update.Result>;
1248
+ patch: (body: Service.LineClassification.Patch.Body) => Promise<Service.LineClassification.Patch.Result>;
1249
+ remove: (id: Service.LineClassification.Update.ID) => Promise<Service.LineClassification.Remove.Result>;
1250
+ };
1251
+ line: {
1252
+ _path: "line";
1253
+ find: (params?: Service.Line.Find.Params) => Promise<Service.Line.Find.Result>;
1254
+ get: (id: Service.Line.Get.ID, params?: Service.Line.Get.Params) => Promise<Service.Line.Get.Result>;
1255
+ create: (body: Service.Line.Create.Body) => Promise<Service.Line.Create.Result>;
1256
+ update: (id: Service.Line.Update.ID, body: Service.Line.Update.Body) => Promise<Service.Line.Update.Result>;
1257
+ patch: (body: Service.Line.Patch.Body) => Promise<Service.Line.Patch.Result>;
1258
+ remove: (id: Service.Line.Update.ID) => Promise<Service.Line.Remove.Result>;
1259
+ };
1260
+ clientLine: {
1261
+ _path: "client-line";
1262
+ find: (params?: Service.ClientLine.Find.Params) => Promise<Service.ClientLine.Find.Result>;
1263
+ get: (id: Service.ClientLine.Get.ID, params?: Service.ClientLine.Get.Params) => Promise<Service.ClientLine.Get.Result>;
1264
+ create: (body: Service.ClientLine.Create.Body) => Promise<Service.ClientLine.Create.Result>;
1265
+ update: (id: Service.ClientLine.Update.ID, body: Service.ClientLine.Update.Body) => Promise<Service.ClientLine.Update.Result>;
1266
+ remove: (id: Service.ClientLine.Update.ID) => Promise<Service.ClientLine.Remove.Result>;
1267
+ };
1236
1268
  }
package/lib/index.js CHANGED
@@ -128,6 +128,9 @@ export const end_points = {
128
128
  LATEST_SERIAL: "latest-serial",
129
129
  FORM_V2: "form-v2",
130
130
  ACTIVITY_FORM_V2_RESULT: "activity-form-v2-result",
131
+ LINE_CLASSIFICATION: "line-classification",
132
+ LINE: "line",
133
+ CLIENT_LINE: "client-line",
131
134
  };
132
135
  export const availableService = [
133
136
  "client",
@@ -2534,6 +2537,80 @@ class Repzo {
2534
2537
  return res;
2535
2538
  },
2536
2539
  };
2540
+ this.lineClassification = {
2541
+ _path: Repzo._end_points.LINE_CLASSIFICATION,
2542
+ find: async (params) => {
2543
+ let res = await this._fetch(this.svAPIEndpoint, this.lineClassification._path, params);
2544
+ return res;
2545
+ },
2546
+ get: async (id, params) => {
2547
+ return await this._fetch(this.svAPIEndpoint, this.lineClassification._path + `/${id}`, params);
2548
+ },
2549
+ create: async (body) => {
2550
+ let res = await this._create(this.svAPIEndpoint, this.lineClassification._path, body);
2551
+ return res;
2552
+ },
2553
+ update: async (id, body) => {
2554
+ let res = await this._update(this.svAPIEndpoint, this.lineClassification._path + `/${id}`, body);
2555
+ return res;
2556
+ },
2557
+ patch: async (body) => {
2558
+ let res = await this._patch(this.svAPIEndpoint, this.lineClassification._path, body);
2559
+ return res;
2560
+ },
2561
+ remove: async (id) => {
2562
+ let res = await this._delete(this.svAPIEndpoint, this.lineClassification._path + `/${id}`);
2563
+ return res;
2564
+ },
2565
+ };
2566
+ this.line = {
2567
+ _path: Repzo._end_points.LINE,
2568
+ find: async (params) => {
2569
+ let res = await this._fetch(this.svAPIEndpoint, this.line._path, params);
2570
+ return res;
2571
+ },
2572
+ get: async (id, params) => {
2573
+ return await this._fetch(this.svAPIEndpoint, this.line._path + `/${id}`, params);
2574
+ },
2575
+ create: async (body) => {
2576
+ let res = await this._create(this.svAPIEndpoint, this.line._path, body);
2577
+ return res;
2578
+ },
2579
+ update: async (id, body) => {
2580
+ let res = await this._update(this.svAPIEndpoint, this.line._path + `/${id}`, body);
2581
+ return res;
2582
+ },
2583
+ patch: async (body) => {
2584
+ let res = await this._patch(this.svAPIEndpoint, this.line._path, body);
2585
+ return res;
2586
+ },
2587
+ remove: async (id) => {
2588
+ let res = await this._delete(this.svAPIEndpoint, this.line._path + `/${id}`);
2589
+ return res;
2590
+ },
2591
+ };
2592
+ this.clientLine = {
2593
+ _path: Repzo._end_points.CLIENT_LINE,
2594
+ find: async (params) => {
2595
+ let res = await this._fetch(this.svAPIEndpoint, this.clientLine._path, params);
2596
+ return res;
2597
+ },
2598
+ get: async (id, params) => {
2599
+ return await this._fetch(this.svAPIEndpoint, this.clientLine._path + `/${id}`, params);
2600
+ },
2601
+ create: async (body) => {
2602
+ let res = await this._create(this.svAPIEndpoint, this.clientLine._path, body);
2603
+ return res;
2604
+ },
2605
+ update: async (id, body) => {
2606
+ let res = await this._update(this.svAPIEndpoint, this.clientLine._path + `/${id}`, body);
2607
+ return res;
2608
+ },
2609
+ remove: async (id) => {
2610
+ let res = await this._delete(this.svAPIEndpoint, this.clientLine._path + `/${id}`);
2611
+ return res;
2612
+ },
2613
+ };
2537
2614
  this.svAPIEndpoint =
2538
2615
  !options?.env || options?.env == "production"
2539
2616
  ? "https://sv.api.repzo.me"
@@ -9310,7 +9310,7 @@ export declare namespace Service {
9310
9310
  */
9311
9311
  readQuery: ReadQuery[];
9312
9312
  }
9313
- interface UpdateBody {
9313
+ export interface UpdateBody {
9314
9314
  /**
9315
9315
  * @type {string} name of model (an enum value) as specified in patch-filter schema
9316
9316
  */
@@ -12508,6 +12508,7 @@ export declare namespace Service {
12508
12508
  business_day?: string;
12509
12509
  client?: StringId;
12510
12510
  route?: StringId;
12511
+ original_doc?: ClientLine.Data[];
12511
12512
  [ket: string]: any;
12512
12513
  };
12513
12514
  history?: {
@@ -17895,6 +17896,188 @@ export declare namespace Service {
17895
17896
  }
17896
17897
  export {};
17897
17898
  }
17899
+ namespace LineClassification {
17900
+ interface Data {
17901
+ _id: StringId;
17902
+ name: string;
17903
+ local_name?: string;
17904
+ disabled: boolean;
17905
+ company_namespace: string[];
17906
+ createdAt: string;
17907
+ updatedAt: string;
17908
+ __v?: number;
17909
+ }
17910
+ interface CreateBody {
17911
+ company_namespace?: string[];
17912
+ name: string;
17913
+ local_name?: string;
17914
+ disabled?: boolean;
17915
+ }
17916
+ type UpdateBody = Partial<Data>;
17917
+ namespace Find {
17918
+ type Params = DefaultPaginationQueryParams & {
17919
+ search?: string;
17920
+ _id?: StringId | StringId[];
17921
+ disabled?: boolean | boolean[];
17922
+ name?: string | string[];
17923
+ };
17924
+ interface Result extends DefaultPaginationResult {
17925
+ data: Data[];
17926
+ }
17927
+ }
17928
+ namespace Get {
17929
+ type ID = string;
17930
+ type Params = {
17931
+ [key: string]: any;
17932
+ };
17933
+ type Result = Data;
17934
+ }
17935
+ namespace Create {
17936
+ type Body = CreateBody;
17937
+ type Result = Data;
17938
+ }
17939
+ namespace Update {
17940
+ type ID = StringId;
17941
+ type Body = UpdateBody;
17942
+ type Result = Data;
17943
+ }
17944
+ namespace Patch {
17945
+ type Body = PatchAction.UpdateBody;
17946
+ interface Result {
17947
+ nFound: number;
17948
+ nModified: number;
17949
+ }
17950
+ }
17951
+ namespace Remove {
17952
+ type ID = string;
17953
+ type Result = Data;
17954
+ }
17955
+ }
17956
+ namespace Line {
17957
+ export interface Data {
17958
+ _id: StringId;
17959
+ name: string;
17960
+ local_name?: string;
17961
+ disabled: boolean;
17962
+ icon?: string;
17963
+ icon_media?: StringId;
17964
+ company_namespace: string[];
17965
+ createdAt: string;
17966
+ updatedAt: string;
17967
+ __v?: number;
17968
+ }
17969
+ export interface CreateBody {
17970
+ company_namespace?: string[];
17971
+ name: string;
17972
+ local_name?: string;
17973
+ disabled?: boolean;
17974
+ icon?: string;
17975
+ icon_media?: StringId;
17976
+ }
17977
+ export type UpdateBody = Partial<Data>;
17978
+ export type PopulatedDoc = Data & {
17979
+ icon_media: StringId | MediaDoc;
17980
+ };
17981
+ type PopulatedKeys = "icon_media";
17982
+ export namespace Find {
17983
+ type Params = DefaultPaginationQueryParams & {
17984
+ populatedKeys?: PopulatedKeys | PopulatedKeys[];
17985
+ search?: string;
17986
+ _id?: StringId | StringId[];
17987
+ name?: string | string[];
17988
+ disabled?: boolean | boolean[];
17989
+ };
17990
+ interface Result extends DefaultPaginationResult {
17991
+ data: PopulatedDoc[];
17992
+ }
17993
+ }
17994
+ export namespace Get {
17995
+ type ID = string;
17996
+ type Params = {
17997
+ populatedKeys?: PopulatedKeys[];
17998
+ };
17999
+ type Result = PopulatedDoc;
18000
+ }
18001
+ export namespace Create {
18002
+ type Body = CreateBody;
18003
+ type Result = Data;
18004
+ }
18005
+ export namespace Update {
18006
+ type ID = StringId;
18007
+ type Body = UpdateBody;
18008
+ type Result = Data;
18009
+ }
18010
+ export namespace Patch {
18011
+ type Body = PatchAction.UpdateBody;
18012
+ interface Result {
18013
+ nFound: number;
18014
+ nModified: number;
18015
+ }
18016
+ }
18017
+ export namespace Remove {
18018
+ type ID = string;
18019
+ type Result = Data;
18020
+ }
18021
+ export {};
18022
+ }
18023
+ namespace ClientLine {
18024
+ export interface Data {
18025
+ _id: StringId;
18026
+ client: StringId;
18027
+ classification: StringId;
18028
+ line: StringId;
18029
+ company_namespace: string[];
18030
+ createdAt: string;
18031
+ updatedAt: string;
18032
+ __v?: number;
18033
+ }
18034
+ export interface CreateBody {
18035
+ company_namespace?: string[];
18036
+ client: StringId;
18037
+ classification: StringId;
18038
+ line: StringId;
18039
+ }
18040
+ export type UpdateBody = Partial<Data>;
18041
+ export type PopulatedDoc = Data & {
18042
+ client: StringId | Client.Data;
18043
+ classification: StringId | LineClassification.Data;
18044
+ line: StringId | Line.Data;
18045
+ };
18046
+ type PopulatedKeys = "client" | "classification" | "line";
18047
+ export namespace Find {
18048
+ type Params = DefaultPaginationQueryParams & {
18049
+ populatedKeys?: PopulatedKeys | PopulatedKeys[];
18050
+ _id?: StringId | StringId[];
18051
+ client?: StringId | StringId[];
18052
+ line?: StringId | StringId[];
18053
+ classification?: StringId | StringId[];
18054
+ };
18055
+ interface Result extends DefaultPaginationResult {
18056
+ data: PopulatedDoc[];
18057
+ }
18058
+ }
18059
+ export namespace Get {
18060
+ type ID = string;
18061
+ type Params = {
18062
+ populatedKeys?: PopulatedKeys[];
18063
+ };
18064
+ type Result = PopulatedDoc;
18065
+ }
18066
+ export namespace Create {
18067
+ type Body = CreateBody;
18068
+ type Result = Data;
18069
+ }
18070
+ export namespace Update {
18071
+ type ID = StringId;
18072
+ type Body = UpdateBody;
18073
+ type Result = Data;
18074
+ }
18075
+ export namespace Remove {
18076
+ type ID = string;
18077
+ type Result = Data;
18078
+ }
18079
+ export {};
18080
+ }
17898
18081
  }
17899
18082
  export type StringId = string;
17900
18083
  export type NameSpaces = string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repzo",
3
- "version": "1.0.251",
3
+ "version": "1.0.252",
4
4
  "description": "Repzo TypeScript SDK",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
package/src/index.ts CHANGED
@@ -138,6 +138,9 @@ export const end_points = {
138
138
  LATEST_SERIAL: "latest-serial",
139
139
  FORM_V2: "form-v2",
140
140
  ACTIVITY_FORM_V2_RESULT: "activity-form-v2-result",
141
+ LINE_CLASSIFICATION: "line-classification",
142
+ LINE: "line",
143
+ CLIENT_LINE: "client-line",
141
144
  } as const;
142
145
  export type EndPoints = (typeof end_points)[keyof typeof end_points];
143
146
 
@@ -6386,6 +6389,184 @@ export default class Repzo {
6386
6389
  return res;
6387
6390
  },
6388
6391
  };
6392
+
6393
+ lineClassification = {
6394
+ _path: Repzo._end_points.LINE_CLASSIFICATION,
6395
+ find: async (
6396
+ params?: Service.LineClassification.Find.Params,
6397
+ ): Promise<Service.LineClassification.Find.Result> => {
6398
+ let res: Service.LineClassification.Find.Result = await this._fetch(
6399
+ this.svAPIEndpoint,
6400
+ this.lineClassification._path,
6401
+ params,
6402
+ );
6403
+ return res;
6404
+ },
6405
+ get: async (
6406
+ id: Service.LineClassification.Get.ID,
6407
+ params?: Service.LineClassification.Get.Params,
6408
+ ): Promise<Service.LineClassification.Get.Result> => {
6409
+ return await this._fetch(
6410
+ this.svAPIEndpoint,
6411
+ this.lineClassification._path + `/${id}`,
6412
+ params,
6413
+ );
6414
+ },
6415
+ create: async (
6416
+ body: Service.LineClassification.Create.Body,
6417
+ ): Promise<Service.LineClassification.Create.Result> => {
6418
+ let res = await this._create(
6419
+ this.svAPIEndpoint,
6420
+ this.lineClassification._path,
6421
+ body,
6422
+ );
6423
+ return res;
6424
+ },
6425
+ update: async (
6426
+ id: Service.LineClassification.Update.ID,
6427
+ body: Service.LineClassification.Update.Body,
6428
+ ): Promise<Service.LineClassification.Update.Result> => {
6429
+ let res: Service.LineClassification.Update.Result = await this._update(
6430
+ this.svAPIEndpoint,
6431
+ this.lineClassification._path + `/${id}`,
6432
+ body,
6433
+ );
6434
+ return res;
6435
+ },
6436
+ patch: async (
6437
+ body: Service.LineClassification.Patch.Body,
6438
+ ): Promise<Service.LineClassification.Patch.Result> => {
6439
+ let res: Service.LineClassification.Patch.Result = await this._patch(
6440
+ this.svAPIEndpoint,
6441
+ this.lineClassification._path,
6442
+ body,
6443
+ );
6444
+ return res;
6445
+ },
6446
+ remove: async (
6447
+ id: Service.LineClassification.Update.ID,
6448
+ ): Promise<Service.LineClassification.Remove.Result> => {
6449
+ let res: Service.LineClassification.Remove.Result = await this._delete(
6450
+ this.svAPIEndpoint,
6451
+ this.lineClassification._path + `/${id}`,
6452
+ );
6453
+ return res;
6454
+ },
6455
+ };
6456
+
6457
+ line = {
6458
+ _path: Repzo._end_points.LINE,
6459
+ find: async (
6460
+ params?: Service.Line.Find.Params,
6461
+ ): Promise<Service.Line.Find.Result> => {
6462
+ let res: Service.Line.Find.Result = await this._fetch(
6463
+ this.svAPIEndpoint,
6464
+ this.line._path,
6465
+ params,
6466
+ );
6467
+ return res;
6468
+ },
6469
+ get: async (
6470
+ id: Service.Line.Get.ID,
6471
+ params?: Service.Line.Get.Params,
6472
+ ): Promise<Service.Line.Get.Result> => {
6473
+ return await this._fetch(
6474
+ this.svAPIEndpoint,
6475
+ this.line._path + `/${id}`,
6476
+ params,
6477
+ );
6478
+ },
6479
+ create: async (
6480
+ body: Service.Line.Create.Body,
6481
+ ): Promise<Service.Line.Create.Result> => {
6482
+ let res = await this._create(this.svAPIEndpoint, this.line._path, body);
6483
+ return res;
6484
+ },
6485
+ update: async (
6486
+ id: Service.Line.Update.ID,
6487
+ body: Service.Line.Update.Body,
6488
+ ): Promise<Service.Line.Update.Result> => {
6489
+ let res: Service.Line.Update.Result = await this._update(
6490
+ this.svAPIEndpoint,
6491
+ this.line._path + `/${id}`,
6492
+ body,
6493
+ );
6494
+ return res;
6495
+ },
6496
+ patch: async (
6497
+ body: Service.Line.Patch.Body,
6498
+ ): Promise<Service.Line.Patch.Result> => {
6499
+ let res: Service.Line.Patch.Result = await this._patch(
6500
+ this.svAPIEndpoint,
6501
+ this.line._path,
6502
+ body,
6503
+ );
6504
+ return res;
6505
+ },
6506
+ remove: async (
6507
+ id: Service.Line.Update.ID,
6508
+ ): Promise<Service.Line.Remove.Result> => {
6509
+ let res: Service.Line.Remove.Result = await this._delete(
6510
+ this.svAPIEndpoint,
6511
+ this.line._path + `/${id}`,
6512
+ );
6513
+ return res;
6514
+ },
6515
+ };
6516
+
6517
+ clientLine = {
6518
+ _path: Repzo._end_points.CLIENT_LINE,
6519
+ find: async (
6520
+ params?: Service.ClientLine.Find.Params,
6521
+ ): Promise<Service.ClientLine.Find.Result> => {
6522
+ let res: Service.ClientLine.Find.Result = await this._fetch(
6523
+ this.svAPIEndpoint,
6524
+ this.clientLine._path,
6525
+ params,
6526
+ );
6527
+ return res;
6528
+ },
6529
+ get: async (
6530
+ id: Service.ClientLine.Get.ID,
6531
+ params?: Service.ClientLine.Get.Params,
6532
+ ): Promise<Service.ClientLine.Get.Result> => {
6533
+ return await this._fetch(
6534
+ this.svAPIEndpoint,
6535
+ this.clientLine._path + `/${id}`,
6536
+ params,
6537
+ );
6538
+ },
6539
+ create: async (
6540
+ body: Service.ClientLine.Create.Body,
6541
+ ): Promise<Service.ClientLine.Create.Result> => {
6542
+ let res = await this._create(
6543
+ this.svAPIEndpoint,
6544
+ this.clientLine._path,
6545
+ body,
6546
+ );
6547
+ return res;
6548
+ },
6549
+ update: async (
6550
+ id: Service.ClientLine.Update.ID,
6551
+ body: Service.ClientLine.Update.Body,
6552
+ ): Promise<Service.ClientLine.Update.Result> => {
6553
+ let res: Service.ClientLine.Update.Result = await this._update(
6554
+ this.svAPIEndpoint,
6555
+ this.clientLine._path + `/${id}`,
6556
+ body,
6557
+ );
6558
+ return res;
6559
+ },
6560
+ remove: async (
6561
+ id: Service.ClientLine.Update.ID,
6562
+ ): Promise<Service.ClientLine.Remove.Result> => {
6563
+ let res: Service.ClientLine.Remove.Result = await this._delete(
6564
+ this.svAPIEndpoint,
6565
+ this.clientLine._path + `/${id}`,
6566
+ );
6567
+ return res;
6568
+ },
6569
+ };
6389
6570
  }
6390
6571
 
6391
6572
  function normalizeParams(params: Params): { [key: string]: any } {
@@ -9907,7 +9907,7 @@ export namespace Service {
9907
9907
  */
9908
9908
  readQuery: ReadQuery[];
9909
9909
  }
9910
- interface UpdateBody {
9910
+ export interface UpdateBody {
9911
9911
  /**
9912
9912
  * @type {string} name of model (an enum value) as specified in patch-filter schema
9913
9913
  */
@@ -13300,6 +13300,7 @@ export namespace Service {
13300
13300
  business_day?: string;
13301
13301
  client?: StringId;
13302
13302
  route?: StringId;
13303
+ original_doc?: ClientLine.Data[];
13303
13304
  [ket: string]: any;
13304
13305
  };
13305
13306
  history?: {
@@ -19996,6 +19997,190 @@ export namespace Service {
19996
19997
  export type Result = Data;
19997
19998
  }
19998
19999
  }
20000
+
20001
+ export namespace LineClassification {
20002
+ export interface Data {
20003
+ _id: StringId;
20004
+ name: string;
20005
+ local_name?: string;
20006
+ disabled: boolean;
20007
+ company_namespace: string[];
20008
+ createdAt: string;
20009
+ updatedAt: string;
20010
+ __v?: number;
20011
+ }
20012
+ export interface CreateBody {
20013
+ company_namespace?: string[];
20014
+ name: string;
20015
+ local_name?: string;
20016
+ disabled?: boolean;
20017
+ }
20018
+ export type UpdateBody = Partial<Data>;
20019
+
20020
+ export namespace Find {
20021
+ export type Params = DefaultPaginationQueryParams & {
20022
+ search?: string;
20023
+ _id?: StringId | StringId[];
20024
+ disabled?: boolean | boolean[];
20025
+ name?: string | string[];
20026
+ };
20027
+ export interface Result extends DefaultPaginationResult {
20028
+ data: Data[];
20029
+ }
20030
+ }
20031
+ export namespace Get {
20032
+ export type ID = string;
20033
+ export type Params = { [key: string]: any };
20034
+ export type Result = Data;
20035
+ }
20036
+ export namespace Create {
20037
+ export type Body = CreateBody;
20038
+ export type Result = Data;
20039
+ }
20040
+ export namespace Update {
20041
+ export type ID = StringId;
20042
+ export type Body = UpdateBody;
20043
+ export type Result = Data;
20044
+ }
20045
+ export namespace Patch {
20046
+ export type Body = PatchAction.UpdateBody;
20047
+ export interface Result {
20048
+ nFound: number;
20049
+ nModified: number;
20050
+ }
20051
+ }
20052
+ export namespace Remove {
20053
+ export type ID = string;
20054
+ export type Result = Data;
20055
+ }
20056
+ }
20057
+
20058
+ export namespace Line {
20059
+ export interface Data {
20060
+ _id: StringId;
20061
+ name: string;
20062
+ local_name?: string;
20063
+ disabled: boolean;
20064
+ icon?: string;
20065
+ icon_media?: StringId;
20066
+ company_namespace: string[];
20067
+ createdAt: string;
20068
+ updatedAt: string;
20069
+ __v?: number;
20070
+ }
20071
+ export interface CreateBody {
20072
+ company_namespace?: string[];
20073
+ name: string;
20074
+ local_name?: string;
20075
+ disabled?: boolean;
20076
+ icon?: string;
20077
+ icon_media?: StringId;
20078
+ }
20079
+ export type UpdateBody = Partial<Data>;
20080
+
20081
+ export type PopulatedDoc = Data & {
20082
+ icon_media: StringId | MediaDoc;
20083
+ };
20084
+
20085
+ type PopulatedKeys = "icon_media";
20086
+
20087
+ export namespace Find {
20088
+ export type Params = DefaultPaginationQueryParams & {
20089
+ populatedKeys?: PopulatedKeys | PopulatedKeys[];
20090
+ search?: string;
20091
+ _id?: StringId | StringId[];
20092
+ name?: string | string[];
20093
+ disabled?: boolean | boolean[];
20094
+ };
20095
+ export interface Result extends DefaultPaginationResult {
20096
+ data: PopulatedDoc[];
20097
+ }
20098
+ }
20099
+ export namespace Get {
20100
+ export type ID = string;
20101
+ export type Params = { populatedKeys?: PopulatedKeys[] };
20102
+ export type Result = PopulatedDoc;
20103
+ }
20104
+ export namespace Create {
20105
+ export type Body = CreateBody;
20106
+ export type Result = Data;
20107
+ }
20108
+ export namespace Update {
20109
+ export type ID = StringId;
20110
+ export type Body = UpdateBody;
20111
+ export type Result = Data;
20112
+ }
20113
+ export namespace Patch {
20114
+ export type Body = PatchAction.UpdateBody;
20115
+ export interface Result {
20116
+ nFound: number;
20117
+ nModified: number;
20118
+ }
20119
+ }
20120
+ export namespace Remove {
20121
+ export type ID = string;
20122
+ export type Result = Data;
20123
+ }
20124
+ }
20125
+
20126
+ export namespace ClientLine {
20127
+ export interface Data {
20128
+ _id: StringId;
20129
+ client: StringId;
20130
+ classification: StringId;
20131
+ line: StringId;
20132
+ company_namespace: string[];
20133
+ createdAt: string;
20134
+ updatedAt: string;
20135
+ __v?: number;
20136
+ }
20137
+ export interface CreateBody {
20138
+ company_namespace?: string[];
20139
+ client: StringId;
20140
+ classification: StringId;
20141
+ line: StringId;
20142
+ }
20143
+ export type UpdateBody = Partial<Data>;
20144
+
20145
+ export type PopulatedDoc = Data & {
20146
+ client: StringId | Client.Data;
20147
+ classification: StringId | LineClassification.Data;
20148
+ line: StringId | Line.Data;
20149
+ };
20150
+
20151
+ type PopulatedKeys = "client" | "classification" | "line";
20152
+
20153
+ export namespace Find {
20154
+ export type Params = DefaultPaginationQueryParams & {
20155
+ populatedKeys?: PopulatedKeys | PopulatedKeys[];
20156
+ _id?: StringId | StringId[];
20157
+ client?: StringId | StringId[];
20158
+ line?: StringId | StringId[];
20159
+ classification?: StringId | StringId[];
20160
+ };
20161
+ export interface Result extends DefaultPaginationResult {
20162
+ data: PopulatedDoc[];
20163
+ }
20164
+ }
20165
+ export namespace Get {
20166
+ export type ID = string;
20167
+ export type Params = { populatedKeys?: PopulatedKeys[] };
20168
+ export type Result = PopulatedDoc;
20169
+ }
20170
+ export namespace Create {
20171
+ export type Body = CreateBody;
20172
+ export type Result = Data;
20173
+ }
20174
+ export namespace Update {
20175
+ export type ID = StringId;
20176
+ export type Body = UpdateBody;
20177
+ export type Result = Data;
20178
+ }
20179
+ export namespace Remove {
20180
+ export type ID = string;
20181
+ export type Result = Data;
20182
+ }
20183
+ }
19999
20184
  }
20000
20185
 
20001
20186
  export type StringId = string;