repzo 1.0.270 → 1.0.271
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/types/index.d.ts +18 -7
- package/package.json +1 -1
- package/src/types/index.ts +25 -8
package/lib/types/index.d.ts
CHANGED
|
@@ -7176,7 +7176,7 @@ export declare namespace Service {
|
|
|
7176
7176
|
field: "_id";
|
|
7177
7177
|
type: "asc" | "desc";
|
|
7178
7178
|
}[];
|
|
7179
|
-
nodeCycles?:
|
|
7179
|
+
nodeCycles?: StringId[] | StringId;
|
|
7180
7180
|
withCycle?: boolean;
|
|
7181
7181
|
conversion_status?: "converted" | "not_converted" | "all";
|
|
7182
7182
|
};
|
|
@@ -8218,7 +8218,7 @@ export declare namespace Service {
|
|
|
8218
8218
|
name: string;
|
|
8219
8219
|
disabled: boolean;
|
|
8220
8220
|
company_namespace: string[];
|
|
8221
|
-
type: "proforma" | "transfer" | "approval-request" | "receiving-material" | "asset-part-transfer" | "adjust-inventory" | "return-asset-part-unit" | "store-asset-part-unit";
|
|
8221
|
+
type: "proforma" | "transfer" | "approval-request" | "receiving-material" | "asset-part-transfer" | "adjust-inventory" | "return-asset-part-unit" | "store-asset-part-unit" | "activity-form-v2-result";
|
|
8222
8222
|
position?: number;
|
|
8223
8223
|
description?: string;
|
|
8224
8224
|
rules: {
|
|
@@ -8248,7 +8248,7 @@ export declare namespace Service {
|
|
|
8248
8248
|
}
|
|
8249
8249
|
export interface CreateBody {
|
|
8250
8250
|
name: string;
|
|
8251
|
-
type: "proforma" | "transfer" | "approval-request" | "receiving-material" | "asset-part-transfer" | "adjust-inventory" | "return-asset-part-unit" | "store-asset-part-unit";
|
|
8251
|
+
type: "proforma" | "transfer" | "approval-request" | "receiving-material" | "asset-part-transfer" | "adjust-inventory" | "return-asset-part-unit" | "store-asset-part-unit" | "activity-form-v2-result";
|
|
8252
8252
|
creator?: AdminCreator;
|
|
8253
8253
|
disabled?: boolean;
|
|
8254
8254
|
company_namespace?: string[];
|
|
@@ -8290,7 +8290,7 @@ export declare namespace Service {
|
|
|
8290
8290
|
name?: string;
|
|
8291
8291
|
disabled?: boolean;
|
|
8292
8292
|
company_namespace?: string[];
|
|
8293
|
-
type?: "proforma" | "transfer" | "approval-request" | "receiving-material" | "asset-part-transfer" | "adjust-inventory" | "return-asset-part-unit" | "store-asset-part-unit";
|
|
8293
|
+
type?: "proforma" | "transfer" | "approval-request" | "receiving-material" | "asset-part-transfer" | "adjust-inventory" | "return-asset-part-unit" | "store-asset-part-unit" | "activity-form-v2-result";
|
|
8294
8294
|
position?: number;
|
|
8295
8295
|
description?: string;
|
|
8296
8296
|
rules?: {
|
|
@@ -8383,7 +8383,7 @@ export declare namespace Service {
|
|
|
8383
8383
|
type CycleStatus = "pending" | "approved" | "processing" | "rejected";
|
|
8384
8384
|
export interface Schema {
|
|
8385
8385
|
_id: string;
|
|
8386
|
-
document_type: "proforma" | "transfer" | "approval-request" | "receiving-material" | "asset-part-transfer" | "adjust-inventory" | "return-asset-part-unit" | "store-asset-part-unit";
|
|
8386
|
+
document_type: "proforma" | "transfer" | "approval-request" | "receiving-material" | "asset-part-transfer" | "adjust-inventory" | "return-asset-part-unit" | "store-asset-part-unit" | "activity-form-v2-result";
|
|
8387
8387
|
document_id: string;
|
|
8388
8388
|
status: CycleStatus;
|
|
8389
8389
|
node?: AdminCreator | RepCreator | ClientCreator;
|
|
@@ -8582,7 +8582,7 @@ export declare namespace Service {
|
|
|
8582
8582
|
status?: TransferStatus | TransferStatus[];
|
|
8583
8583
|
custom_status?: string[] | string;
|
|
8584
8584
|
creator?: string[] | string;
|
|
8585
|
-
nodeCycles?:
|
|
8585
|
+
nodeCycles?: StringId[] | StringId;
|
|
8586
8586
|
from__id?: string;
|
|
8587
8587
|
to__id?: string;
|
|
8588
8588
|
populatedKeys?: PopulatedKeys[];
|
|
@@ -18019,6 +18019,7 @@ export declare namespace Service {
|
|
|
18019
18019
|
route?: StringId;
|
|
18020
18020
|
workorder?: StringId;
|
|
18021
18021
|
sync_id: string;
|
|
18022
|
+
status?: "pending" | "approved" | "processing" | "rejected";
|
|
18022
18023
|
geo_tag?: GeoTag;
|
|
18023
18024
|
geoPoint?: GeoPoint;
|
|
18024
18025
|
platform?: string;
|
|
@@ -18078,6 +18079,7 @@ export declare namespace Service {
|
|
|
18078
18079
|
results: DivisionResult[];
|
|
18079
18080
|
score?: number;
|
|
18080
18081
|
is_completed?: boolean;
|
|
18082
|
+
status?: "pending" | "approved" | "processing" | "rejected";
|
|
18081
18083
|
company_namespace?: string[];
|
|
18082
18084
|
}
|
|
18083
18085
|
export type UpdateBody = Partial<Data>;
|
|
@@ -18087,6 +18089,7 @@ export declare namespace Service {
|
|
|
18087
18089
|
photo_media_populated?: PopulatedMediaStorage & {
|
|
18088
18090
|
ContentLength?: number;
|
|
18089
18091
|
};
|
|
18092
|
+
cycle?: Cycle.Data;
|
|
18090
18093
|
};
|
|
18091
18094
|
type PopulatedKeys = "custom_list" | "client" | "workorder" | "visit" | "route" | "form_id" | "teams" | "tags" | "media";
|
|
18092
18095
|
export namespace Find {
|
|
@@ -18113,6 +18116,9 @@ export declare namespace Service {
|
|
|
18113
18116
|
visit?: StringId | StringId[];
|
|
18114
18117
|
workorder?: StringId | StringId[];
|
|
18115
18118
|
"serial_number.formatted"?: string | string[];
|
|
18119
|
+
status?: Data["status"] | Data["status"][];
|
|
18120
|
+
nodeCycles?: StringId[] | StringId;
|
|
18121
|
+
withCycle?: boolean;
|
|
18116
18122
|
};
|
|
18117
18123
|
interface Result extends DefaultPaginationResult {
|
|
18118
18124
|
data: PopulatedDoc[];
|
|
@@ -18122,6 +18128,7 @@ export declare namespace Service {
|
|
|
18122
18128
|
type ID = string;
|
|
18123
18129
|
type Params = {
|
|
18124
18130
|
populatedKeys?: PopulatedKeys[];
|
|
18131
|
+
withCycle?: boolean;
|
|
18125
18132
|
};
|
|
18126
18133
|
type Result = PopulatedDoc & {
|
|
18127
18134
|
can_edit_types?: boolean;
|
|
@@ -18133,7 +18140,11 @@ export declare namespace Service {
|
|
|
18133
18140
|
}
|
|
18134
18141
|
export namespace Update {
|
|
18135
18142
|
type ID = StringId;
|
|
18136
|
-
type Body = UpdateBody
|
|
18143
|
+
type Body = UpdateBody & {
|
|
18144
|
+
isResubmitted?: boolean;
|
|
18145
|
+
note?: string;
|
|
18146
|
+
stage?: number;
|
|
18147
|
+
};
|
|
18137
18148
|
type Result = Data;
|
|
18138
18149
|
}
|
|
18139
18150
|
export {};
|
package/package.json
CHANGED
package/src/types/index.ts
CHANGED
|
@@ -7792,7 +7792,7 @@ export namespace Service {
|
|
|
7792
7792
|
field: "_id";
|
|
7793
7793
|
type: "asc" | "desc";
|
|
7794
7794
|
}[];
|
|
7795
|
-
nodeCycles?:
|
|
7795
|
+
nodeCycles?: StringId[] | StringId;
|
|
7796
7796
|
withCycle?: boolean;
|
|
7797
7797
|
conversion_status?: "converted" | "not_converted" | "all";
|
|
7798
7798
|
};
|
|
@@ -8830,7 +8830,8 @@ export namespace Service {
|
|
|
8830
8830
|
| "asset-part-transfer"
|
|
8831
8831
|
| "adjust-inventory"
|
|
8832
8832
|
| "return-asset-part-unit"
|
|
8833
|
-
| "store-asset-part-unit"
|
|
8833
|
+
| "store-asset-part-unit"
|
|
8834
|
+
| "activity-form-v2-result";
|
|
8834
8835
|
position?: number;
|
|
8835
8836
|
description?: string;
|
|
8836
8837
|
rules: {
|
|
@@ -8867,7 +8868,8 @@ export namespace Service {
|
|
|
8867
8868
|
| "asset-part-transfer"
|
|
8868
8869
|
| "adjust-inventory"
|
|
8869
8870
|
| "return-asset-part-unit"
|
|
8870
|
-
| "store-asset-part-unit"
|
|
8871
|
+
| "store-asset-part-unit"
|
|
8872
|
+
| "activity-form-v2-result";
|
|
8871
8873
|
creator?: AdminCreator;
|
|
8872
8874
|
disabled?: boolean;
|
|
8873
8875
|
company_namespace?: string[];
|
|
@@ -8907,7 +8909,8 @@ export namespace Service {
|
|
|
8907
8909
|
| "asset-part-transfer"
|
|
8908
8910
|
| "adjust-inventory"
|
|
8909
8911
|
| "return-asset-part-unit"
|
|
8910
|
-
| "store-asset-part-unit"
|
|
8912
|
+
| "store-asset-part-unit"
|
|
8913
|
+
| "activity-form-v2-result";
|
|
8911
8914
|
position?: number;
|
|
8912
8915
|
description?: string;
|
|
8913
8916
|
rules?: {
|
|
@@ -8995,7 +8998,8 @@ export namespace Service {
|
|
|
8995
8998
|
| "asset-part-transfer"
|
|
8996
8999
|
| "adjust-inventory"
|
|
8997
9000
|
| "return-asset-part-unit"
|
|
8998
|
-
| "store-asset-part-unit"
|
|
9001
|
+
| "store-asset-part-unit"
|
|
9002
|
+
| "activity-form-v2-result";
|
|
8999
9003
|
document_id: string;
|
|
9000
9004
|
status: CycleStatus;
|
|
9001
9005
|
node?: AdminCreator | RepCreator | ClientCreator;
|
|
@@ -9194,7 +9198,7 @@ export namespace Service {
|
|
|
9194
9198
|
status?: TransferStatus | TransferStatus[];
|
|
9195
9199
|
custom_status?: string[] | string;
|
|
9196
9200
|
creator?: string[] | string;
|
|
9197
|
-
nodeCycles?:
|
|
9201
|
+
nodeCycles?: StringId[] | StringId;
|
|
9198
9202
|
from__id?: string;
|
|
9199
9203
|
to__id?: string;
|
|
9200
9204
|
populatedKeys?: PopulatedKeys[];
|
|
@@ -20186,6 +20190,7 @@ export namespace Service {
|
|
|
20186
20190
|
route?: StringId;
|
|
20187
20191
|
workorder?: StringId;
|
|
20188
20192
|
sync_id: string;
|
|
20193
|
+
status?: "pending" | "approved" | "processing" | "rejected";
|
|
20189
20194
|
// mobile data
|
|
20190
20195
|
geo_tag?: GeoTag;
|
|
20191
20196
|
geoPoint?: GeoPoint;
|
|
@@ -20247,6 +20252,7 @@ export namespace Service {
|
|
|
20247
20252
|
results: DivisionResult[];
|
|
20248
20253
|
score?: number;
|
|
20249
20254
|
is_completed?: boolean;
|
|
20255
|
+
status?: "pending" | "approved" | "processing" | "rejected";
|
|
20250
20256
|
company_namespace?: string[];
|
|
20251
20257
|
}
|
|
20252
20258
|
export type UpdateBody = Partial<Data>;
|
|
@@ -20260,6 +20266,7 @@ export namespace Service {
|
|
|
20260
20266
|
photo_media_populated?: PopulatedMediaStorage & {
|
|
20261
20267
|
ContentLength?: number;
|
|
20262
20268
|
};
|
|
20269
|
+
cycle?: Cycle.Data;
|
|
20263
20270
|
};
|
|
20264
20271
|
|
|
20265
20272
|
type PopulatedKeys =
|
|
@@ -20297,6 +20304,9 @@ export namespace Service {
|
|
|
20297
20304
|
visit?: StringId | StringId[];
|
|
20298
20305
|
workorder?: StringId | StringId[];
|
|
20299
20306
|
"serial_number.formatted"?: string | string[];
|
|
20307
|
+
status?: Data["status"] | Data["status"][];
|
|
20308
|
+
nodeCycles?: StringId[] | StringId;
|
|
20309
|
+
withCycle?: boolean;
|
|
20300
20310
|
};
|
|
20301
20311
|
export interface Result extends DefaultPaginationResult {
|
|
20302
20312
|
data: PopulatedDoc[];
|
|
@@ -20304,7 +20314,10 @@ export namespace Service {
|
|
|
20304
20314
|
}
|
|
20305
20315
|
export namespace Get {
|
|
20306
20316
|
export type ID = string;
|
|
20307
|
-
export type Params = {
|
|
20317
|
+
export type Params = {
|
|
20318
|
+
populatedKeys?: PopulatedKeys[];
|
|
20319
|
+
withCycle?: boolean;
|
|
20320
|
+
};
|
|
20308
20321
|
export type Result = PopulatedDoc & { can_edit_types?: boolean };
|
|
20309
20322
|
}
|
|
20310
20323
|
export namespace Create {
|
|
@@ -20313,7 +20326,11 @@ export namespace Service {
|
|
|
20313
20326
|
}
|
|
20314
20327
|
export namespace Update {
|
|
20315
20328
|
export type ID = StringId;
|
|
20316
|
-
export type Body = UpdateBody
|
|
20329
|
+
export type Body = UpdateBody & {
|
|
20330
|
+
isResubmitted?: boolean;
|
|
20331
|
+
note?: string;
|
|
20332
|
+
stage?: number;
|
|
20333
|
+
};
|
|
20317
20334
|
export type Result = Data;
|
|
20318
20335
|
}
|
|
20319
20336
|
}
|