@lcdp/api-react-rest-client 2.14.1-LDS-4762-monolith-hook-changement-de-dro.17798346687 → 2.14.1-LDS-4762-monolith-hook-changement-de-dro.17799538628
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.
|
@@ -15,6 +15,12 @@
|
|
|
15
15
|
* @interface HookRequest
|
|
16
16
|
*/
|
|
17
17
|
export interface HookRequest {
|
|
18
|
+
/**
|
|
19
|
+
* API version (e.g., v2)
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof HookRequest
|
|
22
|
+
*/
|
|
23
|
+
api_version?: string;
|
|
18
24
|
/**
|
|
19
25
|
* Event type (e.g., subscription_created, customer_updated)
|
|
20
26
|
* @type {string}
|
|
@@ -27,18 +33,48 @@ export interface HookRequest {
|
|
|
27
33
|
* @memberof HookRequest
|
|
28
34
|
*/
|
|
29
35
|
id: string;
|
|
36
|
+
/**
|
|
37
|
+
* Object type (e.g., event)
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof HookRequest
|
|
40
|
+
*/
|
|
41
|
+
object?: string;
|
|
30
42
|
/**
|
|
31
43
|
* Event timestamp (epoch seconds)
|
|
32
44
|
* @type {number}
|
|
33
45
|
* @memberof HookRequest
|
|
34
46
|
*/
|
|
35
47
|
occurred_at?: number;
|
|
48
|
+
/**
|
|
49
|
+
* Event source (e.g., admin_console, api)
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof HookRequest
|
|
52
|
+
*/
|
|
53
|
+
source?: string;
|
|
54
|
+
/**
|
|
55
|
+
* User who triggered the event
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof HookRequest
|
|
58
|
+
*/
|
|
59
|
+
user?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Webhook status (e.g., scheduled)
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof HookRequest
|
|
64
|
+
*/
|
|
65
|
+
webhook_status?: string;
|
|
36
66
|
/**
|
|
37
67
|
* Event-specific content containing customer, subscription, etc.
|
|
38
68
|
* @type {object}
|
|
39
69
|
* @memberof HookRequest
|
|
40
70
|
*/
|
|
41
71
|
content?: object;
|
|
72
|
+
/**
|
|
73
|
+
* List of webhooks
|
|
74
|
+
* @type {Array<object>}
|
|
75
|
+
* @memberof HookRequest
|
|
76
|
+
*/
|
|
77
|
+
webhooks?: Array<object>;
|
|
42
78
|
}
|
|
43
79
|
/**
|
|
44
80
|
* Check if a given object implements the HookRequest interface.
|
|
@@ -34,10 +34,16 @@ function HookRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
34
|
return json;
|
|
35
35
|
}
|
|
36
36
|
return {
|
|
37
|
+
'api_version': json['api_version'],
|
|
37
38
|
'event_type': json['event_type'],
|
|
38
39
|
'id': json['id'],
|
|
40
|
+
'object': json['object'],
|
|
39
41
|
'occurred_at': json['occurred_at'],
|
|
42
|
+
'source': json['source'],
|
|
43
|
+
'user': json['user'],
|
|
44
|
+
'webhook_status': json['webhook_status'],
|
|
40
45
|
'content': json['content'],
|
|
46
|
+
'webhooks': json['webhooks'],
|
|
41
47
|
};
|
|
42
48
|
}
|
|
43
49
|
exports.HookRequestFromJSONTyped = HookRequestFromJSONTyped;
|
|
@@ -46,10 +52,16 @@ function HookRequestToJSON(value) {
|
|
|
46
52
|
return value;
|
|
47
53
|
}
|
|
48
54
|
return {
|
|
55
|
+
'api_version': value['api_version'],
|
|
49
56
|
'event_type': value['event_type'],
|
|
50
57
|
'id': value['id'],
|
|
58
|
+
'object': value['object'],
|
|
51
59
|
'occurred_at': value['occurred_at'],
|
|
60
|
+
'source': value['source'],
|
|
61
|
+
'user': value['user'],
|
|
62
|
+
'webhook_status': value['webhook_status'],
|
|
52
63
|
'content': value['content'],
|
|
64
|
+
'webhooks': value['webhooks'],
|
|
53
65
|
};
|
|
54
66
|
}
|
|
55
67
|
exports.HookRequestToJSON = HookRequestToJSON;
|