@nomalism-com/types 0.12.6 → 0.12.8
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.
|
@@ -3,16 +3,15 @@ import * as IShared from '../../../shared/interface';
|
|
|
3
3
|
export declare const Route = "google";
|
|
4
4
|
export declare const UpperName = "Google";
|
|
5
5
|
export declare const LowerName: string;
|
|
6
|
-
export
|
|
6
|
+
export interface IGetUserData extends Pick<DocumentHeader, 'document_number' | 'emission_date' | 'owner_number' | 'contact_persona_name' | 'contact_persona_email' | 'contact_persona_telephone' | 'billing_persona_nif' | 'billing_persona_name' | 'billing_persona_email' | 'billing_persona_telephone' | 'billing_persona_address_street' | 'billing_persona_address_locality' | 'billing_persona_address_postal_code' | 'billing_persona_address_country_name' | 'delivery_persona_name' | 'delivery_persona_email' | 'delivery_persona_telephone' | 'delivery_persona_address_street' | 'delivery_persona_address_locality' | 'delivery_persona_address_postal_code' | 'delivery_persona_address_country_name'> {
|
|
7
|
+
store_operator_id: string | null;
|
|
8
|
+
store_operator_name: string | null;
|
|
9
|
+
store_operator_number: number | null;
|
|
10
|
+
reason_for_exemption_name: string | null;
|
|
11
|
+
}
|
|
7
12
|
export interface IUpdateRequest {
|
|
8
13
|
document_name: string;
|
|
9
14
|
client_data?: IGetUserData;
|
|
10
|
-
store_operator: {
|
|
11
|
-
id: string | null;
|
|
12
|
-
name: string | null;
|
|
13
|
-
number: number | null;
|
|
14
|
-
};
|
|
15
|
-
reason_for_exemption_name: string | null;
|
|
16
15
|
}
|
|
17
16
|
export interface ICloneRequest {
|
|
18
17
|
document_name: string;
|
|
@@ -48,16 +48,14 @@ var userData = {
|
|
|
48
48
|
.lowercase()
|
|
49
49
|
.optional(),
|
|
50
50
|
delivery_persona_address_country_name: joi_1.default.string().optional(),
|
|
51
|
+
reason_for_exemption_name: joi_1.default.string().required().allow(null),
|
|
52
|
+
store_operator_id: joi_1.default.string().required().allow(null),
|
|
53
|
+
store_operator_name: joi_1.default.string().required().allow(null),
|
|
54
|
+
store_operator_number: joi_1.default.number().required().allow(null),
|
|
51
55
|
};
|
|
52
56
|
var updateQueryKeys = {
|
|
53
57
|
document_name: joi_1.default.string().required(),
|
|
54
58
|
client_data: joi_1.default.object().keys(userData).optional(),
|
|
55
|
-
reason_for_exemption_name: joi_1.default.string().required().allow(null),
|
|
56
|
-
store_operator: joi_1.default.object().keys({
|
|
57
|
-
id: joi_1.default.string().required().allow(null),
|
|
58
|
-
name: joi_1.default.string().required().allow(null),
|
|
59
|
-
number: joi_1.default.number().required().allow(null),
|
|
60
|
-
}),
|
|
61
59
|
};
|
|
62
60
|
exports.updateQuery = joi_1.default
|
|
63
61
|
.object()
|
|
@@ -188,12 +188,6 @@ export type IBrokerTopicPayload = {
|
|
|
188
188
|
spreadsheetId: string;
|
|
189
189
|
document_name: string;
|
|
190
190
|
client_data?: IGoogleSheets.IGetUserData;
|
|
191
|
-
store_operator: {
|
|
192
|
-
id: string | null;
|
|
193
|
-
name: string | null;
|
|
194
|
-
number: number | null;
|
|
195
|
-
};
|
|
196
|
-
reason_for_exemption_name: string | null;
|
|
197
191
|
};
|
|
198
192
|
[IBrokerTopic.error_handler]: IErrorHandler.ICreateRequest;
|
|
199
193
|
[IBrokerTopic.provider_order_schedule_email]: {
|