repzo 1.0.265 → 1.0.266
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 +33 -22
- package/package.json +1 -1
- package/src/types/index.ts +24 -5
package/lib/types/index.d.ts
CHANGED
|
@@ -8108,7 +8108,19 @@ export declare namespace Service {
|
|
|
8108
8108
|
}
|
|
8109
8109
|
}
|
|
8110
8110
|
namespace Approval {
|
|
8111
|
-
interface
|
|
8111
|
+
interface AdminNode {
|
|
8112
|
+
_id: StringId;
|
|
8113
|
+
type: "admin";
|
|
8114
|
+
name?: string;
|
|
8115
|
+
admin: StringId;
|
|
8116
|
+
}
|
|
8117
|
+
interface RepNode {
|
|
8118
|
+
_id: StringId;
|
|
8119
|
+
type: "rep";
|
|
8120
|
+
name?: string;
|
|
8121
|
+
rep: StringId;
|
|
8122
|
+
}
|
|
8123
|
+
export interface Data {
|
|
8112
8124
|
_id: StringId;
|
|
8113
8125
|
creator: AdminCreator;
|
|
8114
8126
|
name: string;
|
|
@@ -8123,20 +8135,14 @@ export declare namespace Service {
|
|
|
8123
8135
|
permissions: {
|
|
8124
8136
|
can_edit: boolean;
|
|
8125
8137
|
};
|
|
8126
|
-
admins:
|
|
8127
|
-
|
|
8128
|
-
name?: string;
|
|
8129
|
-
type: "admin";
|
|
8130
|
-
}[];
|
|
8131
|
-
reps: {
|
|
8132
|
-
_id: StringId;
|
|
8133
|
-
name?: string;
|
|
8134
|
-
type: "rep";
|
|
8135
|
-
}[];
|
|
8138
|
+
admins: AdminNode[];
|
|
8139
|
+
reps: RepNode[];
|
|
8136
8140
|
append_creator?: boolean;
|
|
8137
8141
|
append_assigned_origin_warehouse_rep?: boolean;
|
|
8138
8142
|
append_assigned_destination_warehouse_rep?: boolean;
|
|
8139
|
-
|
|
8143
|
+
notify_all_admins_before?: boolean;
|
|
8144
|
+
notify_admins_before: AdminNode[];
|
|
8145
|
+
notify_admins_after: AdminNode[];
|
|
8140
8146
|
}[];
|
|
8141
8147
|
filters?: {
|
|
8142
8148
|
key: string;
|
|
@@ -8148,7 +8154,7 @@ export declare namespace Service {
|
|
|
8148
8154
|
updatedAt: Date;
|
|
8149
8155
|
__v: number;
|
|
8150
8156
|
}
|
|
8151
|
-
interface CreateBody {
|
|
8157
|
+
export interface CreateBody {
|
|
8152
8158
|
name: string;
|
|
8153
8159
|
type: "proforma" | "transfer" | "approval-request" | "receiving-material" | "asset-part-transfer" | "adjust-inventory" | "return-asset-part-unit" | "store-asset-part-unit";
|
|
8154
8160
|
creator?: AdminCreator;
|
|
@@ -8175,7 +8181,9 @@ export declare namespace Service {
|
|
|
8175
8181
|
append_creator?: boolean;
|
|
8176
8182
|
append_assigned_origin_warehouse_rep?: boolean;
|
|
8177
8183
|
append_assigned_destination_warehouse_rep?: boolean;
|
|
8178
|
-
|
|
8184
|
+
notify_all_admins_before?: boolean;
|
|
8185
|
+
notify_admins_before: AdminNode[];
|
|
8186
|
+
notify_admins_after: AdminNode[];
|
|
8179
8187
|
}[];
|
|
8180
8188
|
filters?: {
|
|
8181
8189
|
key: string;
|
|
@@ -8184,7 +8192,7 @@ export declare namespace Service {
|
|
|
8184
8192
|
manipulator_function?: string;
|
|
8185
8193
|
}[];
|
|
8186
8194
|
}
|
|
8187
|
-
interface UpdateBody {
|
|
8195
|
+
export interface UpdateBody {
|
|
8188
8196
|
_id?: StringId;
|
|
8189
8197
|
creator?: AdminCreator;
|
|
8190
8198
|
name?: string;
|
|
@@ -8212,7 +8220,9 @@ export declare namespace Service {
|
|
|
8212
8220
|
append_creator?: boolean;
|
|
8213
8221
|
append_assigned_origin_warehouse_rep?: boolean;
|
|
8214
8222
|
append_assigned_destination_warehouse_rep?: boolean;
|
|
8215
|
-
|
|
8223
|
+
notify_all_admins_before?: boolean;
|
|
8224
|
+
notify_admins_before: AdminNode[];
|
|
8225
|
+
notify_admins_after: AdminNode[];
|
|
8216
8226
|
}[];
|
|
8217
8227
|
filters?: {
|
|
8218
8228
|
key: string;
|
|
@@ -8224,7 +8234,7 @@ export declare namespace Service {
|
|
|
8224
8234
|
updatedAt?: Date;
|
|
8225
8235
|
__v?: number;
|
|
8226
8236
|
}
|
|
8227
|
-
namespace Find {
|
|
8237
|
+
export namespace Find {
|
|
8228
8238
|
type Params = DefaultPaginationQueryParams & {
|
|
8229
8239
|
_id?: StringId[] | StringId;
|
|
8230
8240
|
search?: string;
|
|
@@ -8240,23 +8250,23 @@ export declare namespace Service {
|
|
|
8240
8250
|
data: Data[];
|
|
8241
8251
|
}
|
|
8242
8252
|
}
|
|
8243
|
-
namespace Get {
|
|
8253
|
+
export namespace Get {
|
|
8244
8254
|
type ID = string;
|
|
8245
8255
|
type Params = {
|
|
8246
8256
|
[key: string]: any;
|
|
8247
8257
|
};
|
|
8248
8258
|
type Result = Data;
|
|
8249
8259
|
}
|
|
8250
|
-
namespace Create {
|
|
8260
|
+
export namespace Create {
|
|
8251
8261
|
type Body = CreateBody;
|
|
8252
8262
|
type Result = Data;
|
|
8253
8263
|
}
|
|
8254
|
-
namespace Update {
|
|
8264
|
+
export namespace Update {
|
|
8255
8265
|
type ID = string;
|
|
8256
8266
|
type Body = UpdateBody;
|
|
8257
8267
|
type Result = Data;
|
|
8258
8268
|
}
|
|
8259
|
-
namespace Patch {
|
|
8269
|
+
export namespace Patch {
|
|
8260
8270
|
type ID = string;
|
|
8261
8271
|
type Params = {
|
|
8262
8272
|
bulkUpdatePositions?: boolean;
|
|
@@ -8271,10 +8281,11 @@ export declare namespace Service {
|
|
|
8271
8281
|
status: "success" | "failed" | "partial";
|
|
8272
8282
|
};
|
|
8273
8283
|
}
|
|
8274
|
-
namespace Remove {
|
|
8284
|
+
export namespace Remove {
|
|
8275
8285
|
type ID = string;
|
|
8276
8286
|
type Result = Data;
|
|
8277
8287
|
}
|
|
8288
|
+
export {};
|
|
8278
8289
|
}
|
|
8279
8290
|
namespace Cycle {
|
|
8280
8291
|
type CycleStatus = "pending" | "approved" | "processing" | "rejected";
|
package/package.json
CHANGED
package/src/types/index.ts
CHANGED
|
@@ -8668,6 +8668,19 @@ export namespace Service {
|
|
|
8668
8668
|
}
|
|
8669
8669
|
|
|
8670
8670
|
export namespace Approval {
|
|
8671
|
+
interface AdminNode {
|
|
8672
|
+
_id: StringId;
|
|
8673
|
+
type: "admin";
|
|
8674
|
+
name?: string;
|
|
8675
|
+
admin: StringId;
|
|
8676
|
+
}
|
|
8677
|
+
interface RepNode {
|
|
8678
|
+
_id: StringId;
|
|
8679
|
+
type: "rep";
|
|
8680
|
+
name?: string;
|
|
8681
|
+
rep: StringId;
|
|
8682
|
+
}
|
|
8683
|
+
|
|
8671
8684
|
export interface Data {
|
|
8672
8685
|
_id: StringId;
|
|
8673
8686
|
creator: AdminCreator;
|
|
@@ -8689,12 +8702,14 @@ export namespace Service {
|
|
|
8689
8702
|
index: number;
|
|
8690
8703
|
name: string;
|
|
8691
8704
|
permissions: { can_edit: boolean };
|
|
8692
|
-
admins:
|
|
8693
|
-
reps:
|
|
8705
|
+
admins: AdminNode[];
|
|
8706
|
+
reps: RepNode[];
|
|
8694
8707
|
append_creator?: boolean;
|
|
8695
8708
|
append_assigned_origin_warehouse_rep?: boolean;
|
|
8696
8709
|
append_assigned_destination_warehouse_rep?: boolean;
|
|
8697
|
-
|
|
8710
|
+
notify_all_admins_before?: boolean;
|
|
8711
|
+
notify_admins_before: AdminNode[];
|
|
8712
|
+
notify_admins_after: AdminNode[];
|
|
8698
8713
|
}[];
|
|
8699
8714
|
filters?: {
|
|
8700
8715
|
key: string;
|
|
@@ -8732,7 +8747,9 @@ export namespace Service {
|
|
|
8732
8747
|
append_creator?: boolean;
|
|
8733
8748
|
append_assigned_origin_warehouse_rep?: boolean;
|
|
8734
8749
|
append_assigned_destination_warehouse_rep?: boolean;
|
|
8735
|
-
|
|
8750
|
+
notify_all_admins_before?: boolean;
|
|
8751
|
+
notify_admins_before: AdminNode[];
|
|
8752
|
+
notify_admins_after: AdminNode[];
|
|
8736
8753
|
}[];
|
|
8737
8754
|
filters?: {
|
|
8738
8755
|
key: string;
|
|
@@ -8767,7 +8784,9 @@ export namespace Service {
|
|
|
8767
8784
|
append_creator?: boolean;
|
|
8768
8785
|
append_assigned_origin_warehouse_rep?: boolean;
|
|
8769
8786
|
append_assigned_destination_warehouse_rep?: boolean;
|
|
8770
|
-
|
|
8787
|
+
notify_all_admins_before?: boolean;
|
|
8788
|
+
notify_admins_before: AdminNode[];
|
|
8789
|
+
notify_admins_after: AdminNode[];
|
|
8771
8790
|
}[];
|
|
8772
8791
|
filters?: {
|
|
8773
8792
|
key: string;
|