@selfcommunity/react-core 0.1.5 → 0.1.6-alpha.2
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/esm/api-services/src/constants/Endpoints.d.ts.map +1 -1
- package/lib/esm/api-services/src/index.d.ts +6 -2
- package/lib/esm/api-services/src/index.d.ts.map +1 -1
- package/lib/esm/api-services/src/services/webhook/index.d.ts +89 -32
- package/lib/esm/api-services/src/services/webhook/index.d.ts.map +1 -1
- package/lib/esm/api-services/src/types/index.d.ts +4 -0
- package/lib/esm/api-services/src/types/index.d.ts.map +1 -0
- package/lib/esm/api-services/src/types/paginatedResponse.d.ts +10 -0
- package/lib/esm/api-services/src/types/paginatedResponse.d.ts.map +1 -0
- package/lib/esm/api-services/src/types/webhook.d.ts +32 -0
- package/lib/esm/api-services/src/types/webhook.d.ts.map +1 -0
- package/lib/esm/api-services/src/utils/apiRequest.d.ts +2 -0
- package/lib/esm/api-services/src/utils/apiRequest.d.ts.map +1 -0
- package/lib/esm/types/src/index.d.ts +2 -2
- package/lib/esm/types/src/index.d.ts.map +1 -1
- package/lib/esm/types/src/types/index.d.ts +2 -1
- package/lib/esm/types/src/types/index.d.ts.map +1 -1
- package/lib/esm/types/src/types/webhook.d.ts +91 -0
- package/lib/esm/types/src/types/webhook.d.ts.map +1 -0
- package/lib/umd/react-core.js +1 -1
- package/package.json +6 -6
- package/lib/esm/api-services/src/services/dynamic_preference/index.d.ts +0 -16
- package/lib/esm/api-services/src/services/dynamic_preference/index.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Endpoints.d.ts","sourceRoot":"","sources":["../../../../../../api-services/src/constants/Endpoints.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,UAAU,EAAC,MAAM,WAAW,CAAC;AAErC,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,CAAC,MAAM,CAAC,EAAE,MAAM,KAAK,MAAM,CAAC;IACjC,MAAM,EAAE,UAAU,CAAC;CACpB;AAED,QAAA,MAAM,SAAS,EAAE;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"Endpoints.d.ts","sourceRoot":"","sources":["../../../../../../api-services/src/constants/Endpoints.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,UAAU,EAAC,MAAM,WAAW,CAAC;AAErC,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,CAAC,MAAM,CAAC,EAAE,MAAM,KAAK,MAAM,CAAC;IACjC,MAAM,EAAE,UAAU,CAAC;CACpB;AAED,QAAA,MAAM,SAAS,EAAE;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,YAAY,CAAA;CA8/B5C,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -11,6 +11,7 @@ import Endpoints, { EndpointType } from './constants/Endpoints';
|
|
|
11
11
|
*/
|
|
12
12
|
import { formatHttpError } from './utils/http';
|
|
13
13
|
import { generateJWTToken, parseJwt } from './utils/token';
|
|
14
|
+
import { apiRequest } from './utils/apiRequest';
|
|
14
15
|
/**
|
|
15
16
|
* Services
|
|
16
17
|
*/
|
|
@@ -19,7 +20,6 @@ import CommentService, { CommentApiClient, CommentApiClientInterface } from './s
|
|
|
19
20
|
import CustomAdvService, { CustomAdvApiClient, CustomAdvApiClientInterface } from './services/custom_adv';
|
|
20
21
|
import CustomPageService, { CustomPageApiClient, CustomPageApiClientInterface } from './services/custom_page';
|
|
21
22
|
import DataPortabilityService, { DataPortabilityApiClient, DataPortabilityApiClientInterface } from './services/data_portability';
|
|
22
|
-
import DynamicPreferenceService, { DynamicPreferenceApiClient, DynamicPreferenceApiClientInterface } from './services/dynamic_preference';
|
|
23
23
|
import EmbedService, { EmbedApiClient, EmbedApiClientInterface } from './services/embed';
|
|
24
24
|
import FeatureService, { FeatureApiClient, FeatureApiClientInterface } from './services/feature';
|
|
25
25
|
import FeedService, { FeedApiClient, FeedApiClientInterface } from './services/feed';
|
|
@@ -40,8 +40,12 @@ import SuggestionService, { SuggestionApiClient, SuggestionApiClientInterface }
|
|
|
40
40
|
import TagService, { TagApiClient, TagApiClientInterface } from './services/tag';
|
|
41
41
|
import UserService, { UserApiClient, UserApiClientInterface } from './services/user';
|
|
42
42
|
import WebhookService, { WebhookApiClient, WebhookApiClientInterface } from './services/webhook';
|
|
43
|
+
/**
|
|
44
|
+
* Types
|
|
45
|
+
*/
|
|
46
|
+
import { SCPaginatedResponse, WebhookParamType, WebhookEventsType } from './types';
|
|
43
47
|
/**
|
|
44
48
|
* Export all
|
|
45
49
|
*/
|
|
46
|
-
export { http, HttpResponse, HttpMethod, formatHttpError, generateJWTToken, parseJwt, Endpoints, EndpointType, PreferenceService, PreferenceApiClient, PreferenceApiClientInterface, UserService, UserApiClient, UserApiClientInterface, FeatureService, FeatureApiClient, FeatureApiClientInterface, CategoryService, CategoryApiClient, CategoryApiClientInterface, CommentService, CommentApiClient, CommentApiClientInterface, CustomAdvService, CustomAdvApiClient, CustomAdvApiClientInterface, CustomPageService, CustomPageApiClient, CustomPageApiClientInterface, DataPortabilityService, DataPortabilityApiClient, DataPortabilityApiClientInterface,
|
|
50
|
+
export { http, HttpResponse, HttpMethod, apiRequest, formatHttpError, generateJWTToken, parseJwt, Endpoints, EndpointType, PreferenceService, PreferenceApiClient, PreferenceApiClientInterface, UserService, UserApiClient, UserApiClientInterface, FeatureService, FeatureApiClient, FeatureApiClientInterface, CategoryService, CategoryApiClient, CategoryApiClientInterface, CommentService, CommentApiClient, CommentApiClientInterface, CustomAdvService, CustomAdvApiClient, CustomAdvApiClientInterface, CustomPageService, CustomPageApiClient, CustomPageApiClientInterface, DataPortabilityService, DataPortabilityApiClient, DataPortabilityApiClientInterface, EmbedService, EmbedApiClient, EmbedApiClientInterface, FeedService, FeedApiClient, FeedApiClientInterface, FeedObjectService, FeedObjectApiClient, FeedObjectApiClientInterface, IncubatorService, IncubatorApiClient, IncubatorApiClientInterface, InsightService, InsightApiClient, InsightApiClientInterface, LegalPageService, LegalPageApiClient, LegalPageApiClientInterface, LocalityService, LocalityApiClient, LocalityApiClientInterface, LoyaltyService, LoyaltyApiClient, LoyaltyApiClientInterface, MediaService, MediaApiClient, MediaApiClientInterface, ModerationService, ModerationApiClient, ModerationApiClientInterface, NotificationService, NotificationApiClient, NotificationApiClientInterface, PrivateMessageService, PrivateMessageApiClient, PrivateMessageApiClientInterface, ScoreService, ScoreApiClient, ScoreApiClientInterface, SSOService, SSOApiClient, SSOApiClientInterface, SuggestionService, SuggestionApiClient, SuggestionApiClientInterface, TagService, TagApiClient, TagApiClientInterface, WebhookService, WebhookApiClient, WebhookApiClientInterface, SCPaginatedResponse, WebhookParamType, WebhookEventsType };
|
|
47
51
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../api-services/src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,IAAI,EAAE,EAAC,YAAY,EAAE,UAAU,EAAC,MAAM,UAAU,CAAC;AAExD;;GAEG;AACH,OAAO,SAAS,EAAE,EAAC,YAAY,EAAC,MAAM,uBAAuB,CAAC;AAE9D;;GAEG;AACH,OAAO,EAAC,eAAe,EAAC,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAC,gBAAgB,EAAE,QAAQ,EAAC,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../api-services/src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,IAAI,EAAE,EAAC,YAAY,EAAE,UAAU,EAAC,MAAM,UAAU,CAAC;AAExD;;GAEG;AACH,OAAO,SAAS,EAAE,EAAC,YAAY,EAAC,MAAM,uBAAuB,CAAC;AAE9D;;GAEG;AACH,OAAO,EAAC,eAAe,EAAC,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAC,gBAAgB,EAAE,QAAQ,EAAC,MAAM,eAAe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AC1B,cAAc,EACd,gBAAgB,EAChB,yBAAyB,EACzB,gBAAgB,EAChB,kBAAkB,EAClB,2BAA2B,EAC3B,iBAAiB,EACjB,mBAAmB,EACnB,4BAA4B,EAC5B,sBAAsB,EACtB,wBAAwB,EACxB,iCAAiC,EACjC,YAAY,EACZ,cAAc,EACd,uBAAuB,EACvB,WAAW,EACX,aAAa,EACb,sBAAsB,EACtB,iBAAiB,EACjB,mBAAmB,EACnB,4BAA4B,EAC5B,gBAAgB,EAChB,kBAAkB,EAClB,2BAA2B,EAC3B,cAAc,EACd,gBAAgB,EAChB,yBAAyB,EACzB,gBAAgB,EAChB,kBAAkB,EAClB,2BAA2B,EAC3B,eAAe,EACf,iBAAiB,EACjB,0BAA0B,EAC1B,cAAc,EACd,gBAAgB,EAChB,yBAAyB,EACzB,YAAY,EACZ,cAAc,EACd,uBAAuB,EACvB,iBAAiB,EACjB,mBAAmB,EACnB,4BAA4B,EAC5B,mBAAmB,EACnB,qBAAqB,EACrB,8BAA8B,EAC9B,qBAAqB,EACrB,uBAAuB,EACvB,gCAAgC,EAChC,YAAY,EACZ,cAAc,EACd,uBAAuB,EACvB,UAAU,EACV,YAAY,EACZ,qBAAqB,EACrB,iBAAiB,EACjB,mBAAmB,EACnB,4BAA4B,EAC5B,UAAU,EACV,YAAY,EACZ,qBAAqB,EACrB,cAAc,EACd,gBAAgB,EAChB,yBAAyB,EACzB,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EAClB,CAAC"}
|
|
@@ -1,43 +1,100 @@
|
|
|
1
|
+
import { SCWebhookEndpointType, SCWebhookEndpointAttemptType, SCWebhookEndpointSecretType } from '@selfcommunity/types';
|
|
2
|
+
import { WebhookParamType } from '../../types';
|
|
3
|
+
import { SCPaginatedResponse } from '../../types';
|
|
1
4
|
export interface WebhookApiClientInterface {
|
|
2
|
-
getAllWebhookEndpoints(): Promise<
|
|
3
|
-
getAllWebhookEvents(): Promise<
|
|
4
|
-
createWebhookEndpoint(): Promise<
|
|
5
|
-
getASpecificWebhookEndpoint(id: number): Promise<
|
|
6
|
-
updateASpecificWebhookEndpoint(id: number): Promise<
|
|
7
|
-
updateASingleWebhookEndpointField(id: number): Promise<
|
|
5
|
+
getAllWebhookEndpoints(): Promise<SCPaginatedResponse<SCWebhookEndpointType>>;
|
|
6
|
+
getAllWebhookEvents(): Promise<string[]>;
|
|
7
|
+
createWebhookEndpoint(params: WebhookParamType): Promise<SCWebhookEndpointType>;
|
|
8
|
+
getASpecificWebhookEndpoint(id: number): Promise<SCWebhookEndpointType>;
|
|
9
|
+
updateASpecificWebhookEndpoint(id: number, params: WebhookParamType): Promise<SCWebhookEndpointType>;
|
|
10
|
+
updateASingleWebhookEndpointField(id: number, params: WebhookParamType): Promise<SCWebhookEndpointType>;
|
|
8
11
|
deleteWebhookEndpoint(id: number): Promise<any>;
|
|
9
|
-
getAllWebhookEndpointAttempts(): Promise<
|
|
10
|
-
expireWebhookSigningSecret(id: number): Promise<
|
|
11
|
-
revealWebhookSigningSecret(id: number): Promise<
|
|
12
|
-
resendWebhookEndpointEvent(id: number): Promise<any>;
|
|
13
|
-
resendMultipleWebhookEndpointEvent(id: number): Promise<any>;
|
|
12
|
+
getAllWebhookEndpointAttempts(id: number): Promise<SCPaginatedResponse<SCWebhookEndpointAttemptType>>;
|
|
13
|
+
expireWebhookSigningSecret(id: number): Promise<SCWebhookEndpointType>;
|
|
14
|
+
revealWebhookSigningSecret(id: number, password?: string): Promise<SCWebhookEndpointSecretType>;
|
|
15
|
+
resendWebhookEndpointEvent(id: number, event: number): Promise<any>;
|
|
16
|
+
resendMultipleWebhookEndpointEvent(id: number, event: number[]): Promise<any>;
|
|
14
17
|
}
|
|
18
|
+
/**
|
|
19
|
+
* Contains all the endpoints needed to manage webhooks.
|
|
20
|
+
*/
|
|
15
21
|
export declare class WebhookApiClient {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
static
|
|
20
|
-
|
|
21
|
-
|
|
22
|
+
/**
|
|
23
|
+
* This endpoint retrieves all webhook endpoints
|
|
24
|
+
*/
|
|
25
|
+
static getAllWebhookEndpoints(): Promise<SCPaginatedResponse<SCWebhookEndpointType>>;
|
|
26
|
+
/**
|
|
27
|
+
* This endpoint retrieves webhook events that can be enabled in the endpoint.
|
|
28
|
+
*/
|
|
29
|
+
static getAllWebhookEvents(): Promise<string[]>;
|
|
30
|
+
/**
|
|
31
|
+
* This endpoint creates a webhook endpoint and connects it to the given webhook events.
|
|
32
|
+
* @param data
|
|
33
|
+
*/
|
|
34
|
+
static createWebhookEndpoint(data: WebhookParamType): Promise<SCWebhookEndpointType>;
|
|
35
|
+
/**
|
|
36
|
+
* This endpoint retrieves a specific webhook endpoint using ID.
|
|
37
|
+
* @param id
|
|
38
|
+
*/
|
|
39
|
+
static getASpecificWebhookEndpoint(id: number): Promise<SCWebhookEndpointType>;
|
|
40
|
+
/**
|
|
41
|
+
* This endpoint updates a specific webhook endpoint.
|
|
42
|
+
* @param id
|
|
43
|
+
* @param params
|
|
44
|
+
*/
|
|
45
|
+
static updateASpecificWebhookEndpoint(id: number, params: WebhookParamType): Promise<SCWebhookEndpointType>;
|
|
46
|
+
/**
|
|
47
|
+
* This endpoint updates a specific field for a specific webhook endpoint.
|
|
48
|
+
* @param id
|
|
49
|
+
* @param params
|
|
50
|
+
*/
|
|
51
|
+
static updateASingleWebhookEndpointField(id: number, params: WebhookParamType): Promise<SCWebhookEndpointType>;
|
|
52
|
+
/**
|
|
53
|
+
* This endpoint deletes a Webhook Endpoint.
|
|
54
|
+
* @param id
|
|
55
|
+
*/
|
|
22
56
|
static deleteWebhookEndpoint(id: number): Promise<any>;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
static
|
|
57
|
+
/**
|
|
58
|
+
* This endpoint retrieves the attempts related to this endpoint.
|
|
59
|
+
* @param id
|
|
60
|
+
*/
|
|
61
|
+
static getAllWebhookEndpointAttempts(id: number): Promise<SCPaginatedResponse<SCWebhookEndpointAttemptType>>;
|
|
62
|
+
/**
|
|
63
|
+
* This endpoint expires the secret associated with this endpoint.
|
|
64
|
+
* @param id
|
|
65
|
+
*/
|
|
66
|
+
static expireWebhookSigningSecret(id: number): Promise<SCWebhookEndpointType>;
|
|
67
|
+
/**
|
|
68
|
+
* This endpoint reveals the secret associated with this endpoint.
|
|
69
|
+
* @param id
|
|
70
|
+
* @param password
|
|
71
|
+
*/
|
|
72
|
+
static revealWebhookSigningSecret(id: number, password?: string): Promise<SCWebhookEndpointSecretType>;
|
|
73
|
+
/**
|
|
74
|
+
* This endpoint resends the event specified as parameter to the endpoint specified by the id parameter.
|
|
75
|
+
* @param id
|
|
76
|
+
* @param event
|
|
77
|
+
*/
|
|
78
|
+
static resendWebhookEndpointEvent(id: number, event: number): Promise<any>;
|
|
79
|
+
/**
|
|
80
|
+
* This endpoint resends the events specified as parameters to the endpoint specified by the id parameter.
|
|
81
|
+
* @param id
|
|
82
|
+
* @param event
|
|
83
|
+
*/
|
|
84
|
+
static resendMultipleWebhookEndpointEvent(id: number, event: number[]): Promise<any>;
|
|
28
85
|
}
|
|
29
86
|
export default class WebhookService {
|
|
30
|
-
static getAllWebhookEndpoints(): Promise<
|
|
87
|
+
static getAllWebhookEndpoints(): Promise<SCPaginatedResponse<SCWebhookEndpointType>>;
|
|
31
88
|
static getAllWebhookEvents(): Promise<any>;
|
|
32
|
-
static createWebhookEndpoint(): Promise<
|
|
33
|
-
static getASpecificWebhookEndpoint(id: number): Promise<
|
|
34
|
-
static updateASpecificWebhookEndpoint(id: number): Promise<
|
|
35
|
-
static updateASingleWebhookEndpointField(id: number): Promise<
|
|
89
|
+
static createWebhookEndpoint(params: WebhookParamType): Promise<SCWebhookEndpointType>;
|
|
90
|
+
static getASpecificWebhookEndpoint(id: number): Promise<SCWebhookEndpointType>;
|
|
91
|
+
static updateASpecificWebhookEndpoint(id: number, params: WebhookParamType): Promise<SCWebhookEndpointType>;
|
|
92
|
+
static updateASingleWebhookEndpointField(id: number, params: WebhookParamType): Promise<SCWebhookEndpointType>;
|
|
36
93
|
static deleteWebhookEndpoint(id: number): Promise<any>;
|
|
37
|
-
static getAllWebhookEndpointAttempts(id: number): Promise<
|
|
38
|
-
static expireWebhookSigningSecret(id: number): Promise<
|
|
39
|
-
static revealWebhookSigningSecret(id: number): Promise<
|
|
40
|
-
static resendWebhookEndpointEvent(id: number): Promise<any>;
|
|
41
|
-
static resendMultipleWebhookEndpointEvent(id: number): Promise<any>;
|
|
94
|
+
static getAllWebhookEndpointAttempts(id: number): Promise<SCPaginatedResponse<SCWebhookEndpointAttemptType>>;
|
|
95
|
+
static expireWebhookSigningSecret(id: number): Promise<SCWebhookEndpointType>;
|
|
96
|
+
static revealWebhookSigningSecret(id: number, password?: string): Promise<SCWebhookEndpointSecretType>;
|
|
97
|
+
static resendWebhookEndpointEvent(id: number, event: number): Promise<any>;
|
|
98
|
+
static resendMultipleWebhookEndpointEvent(id: number, event: number[]): Promise<any>;
|
|
42
99
|
}
|
|
43
100
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../api-services/src/services/webhook/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../api-services/src/services/webhook/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,qBAAqB,EAAE,4BAA4B,EAAE,2BAA2B,EAAC,MAAM,sBAAsB,CAAC;AACtH,OAAO,EAAC,gBAAgB,EAAC,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAC,mBAAmB,EAAC,MAAM,aAAa,CAAC;AAGhD,MAAM,WAAW,yBAAyB;IACxC,sBAAsB,IAAI,OAAO,CAAC,mBAAmB,CAAC,qBAAqB,CAAC,CAAC,CAAC;IAC9E,mBAAmB,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IACzC,qBAAqB,CAAC,MAAM,EAAE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WAG/E,2BAA2B,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,qBAAqB,CAAC;WAGvE,8BAA8B,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,GAAG,OAAO,CAAC,qBAAqB,CAAC;WAGpG,iCAAiC,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,GAAG,OAAO,CAAC,qBAAqB,CAAC;WAGvG,qBAAqB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;WAG/C,6BAA6B,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC,4BAA4B,CAAC,CAAC;WAGrG,0BAA0B,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,qBAAqB,CAAC;WAGtE,0BAA0B,CAAC,EAAE,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,2BAA2B,CAAC;WAG/F,0BAA0B,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;WAGnE,kCAAkC,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,GAAG,CAAC;CAG3F"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../api-services/src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAC,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAC,gBAAgB,EAAE,iBAAiB,EAAC,MAAM,WAAW,CAAC;AAE9D,OAAO,EAAC,mBAAmB,EAAE,gBAAgB,EAAE,iBAAiB,EAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paginatedResponse.d.ts","sourceRoot":"","sources":["../../../../../../api-services/src/types/paginatedResponse.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,WAAW,mBAAmB,CAAC,CAAC,GAAG,EAAE;IACzC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,CAAC,CAAC;CACZ"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Interface WebhookParamType
|
|
3
|
+
*/
|
|
4
|
+
export interface WebhookParamType {
|
|
5
|
+
/**
|
|
6
|
+
* Active status
|
|
7
|
+
*/
|
|
8
|
+
is_active?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Webhook target
|
|
11
|
+
*/
|
|
12
|
+
target: string;
|
|
13
|
+
/**
|
|
14
|
+
* Webhook description
|
|
15
|
+
*/
|
|
16
|
+
description?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Webhook events
|
|
19
|
+
*/
|
|
20
|
+
events: WebhookEventsType[];
|
|
21
|
+
/**
|
|
22
|
+
* Webhook SSL certificates for HTTPS requests.
|
|
23
|
+
*/
|
|
24
|
+
ssl_cert_verification?: boolean;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Interface WebhookEventsType
|
|
28
|
+
*/
|
|
29
|
+
export interface WebhookEventsType {
|
|
30
|
+
type: string;
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=webhook.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhook.d.ts","sourceRoot":"","sources":["../../../../../../api-services/src/types/webhook.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,MAAM,EAAE,iBAAiB,EAAE,CAAC;IAC5B;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;CACd"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apiRequest.d.ts","sourceRoot":"","sources":["../../../../../../api-services/src/utils/apiRequest.ts"],"names":[],"mappings":"AAEA,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,GAAG,gBAkBjE"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Types
|
|
3
3
|
*/
|
|
4
|
-
import { SCBroadcastMessageBannerType, SCBannerType, SCBroadcastMessageType, SCAuthTokenType, SCCustomAdvPosition, SCCustomAdvType, SCUserFields, SCUserType, SCUserSettingsType, SCUserStatus, SCUserBlockedSettingsType, SCTagType, SCCategoryType, SCEmbedType, SCMediaType, SCContributionLocation, SCLocalityType, SCPollChoiceType, SCPollType, SCFeedUnitType, SCFeedUnitActivityType, SCFeedObjectType, SCFeedPostType, SCFeedDiscussionType, SCFeedStatusType, SCFeedObjectTypologyType, SCFeedUnitActivityTypologyType, SCFeedTypologyType, SCCommentTypologyType, SCCommentsOrderBy, SCCommentType, SCPrivateMessageType, SCPrivateMessageStatusType, SCPrivateMessageFileType, SCMessageFileType, SCNotificationTypologyType, SCNotificationAggregatedType, SCNotificationCommentType, SCNotificationConnectionAcceptType, SCNotificationConnectionRequestType, SCNotificationPrivateMessageType, SCNotificationMentionType, SCNotificationType, SCNotificationBlockedUserType, SCNotificationCollapsedForType, SCNotificationCustomNotificationType, SCNotificationDeletedForType, SCNotificationFollowType, SCNotificationKindlyNoticeType, SCNotificationUnBlockedUserType, SCNotificationUnDeletedForType, SCNotificationUserFollowType, SCNotificationVoteUpType, SCCustomNotificationType, SCIncubatorType, SCNotificationIncubatorType, SCNotificationTopicType, SCPrizeType } from './types';
|
|
4
|
+
import { SCBroadcastMessageBannerType, SCBannerType, SCBroadcastMessageType, SCAuthTokenType, SCCustomAdvPosition, SCCustomAdvType, SCUserFields, SCUserType, SCUserSettingsType, SCUserStatus, SCUserBlockedSettingsType, SCTagType, SCCategoryType, SCEmbedType, SCMediaType, SCContributionLocation, SCLocalityType, SCPollChoiceType, SCPollType, SCFeedUnitType, SCFeedUnitActivityType, SCFeedObjectType, SCFeedPostType, SCFeedDiscussionType, SCFeedStatusType, SCFeedObjectTypologyType, SCFeedUnitActivityTypologyType, SCFeedTypologyType, SCCommentTypologyType, SCCommentsOrderBy, SCCommentType, SCPrivateMessageType, SCPrivateMessageStatusType, SCPrivateMessageFileType, SCMessageFileType, SCNotificationTypologyType, SCNotificationAggregatedType, SCNotificationCommentType, SCNotificationConnectionAcceptType, SCNotificationConnectionRequestType, SCNotificationPrivateMessageType, SCNotificationMentionType, SCNotificationType, SCNotificationBlockedUserType, SCNotificationCollapsedForType, SCNotificationCustomNotificationType, SCNotificationDeletedForType, SCNotificationFollowType, SCNotificationKindlyNoticeType, SCNotificationUnBlockedUserType, SCNotificationUnDeletedForType, SCNotificationUserFollowType, SCNotificationVoteUpType, SCCustomNotificationType, SCIncubatorType, SCNotificationIncubatorType, SCNotificationTopicType, SCPrizeType, SCWebhookEndpointType, SCWebhookEndpointAttemptType, SCWebhookEndpointSecretType, SCWebhookEventsType } from './types';
|
|
5
5
|
/**
|
|
6
6
|
* List all exports
|
|
7
7
|
*/
|
|
8
|
-
export { SCBroadcastMessageBannerType, SCBannerType, SCBroadcastMessageType, SCCustomAdvPosition, SCCustomAdvType, SCAuthTokenType, SCUserFields, SCUserType, SCUserSettingsType, SCUserStatus, SCUserBlockedSettingsType, SCTagType, SCCategoryType, SCEmbedType, SCMediaType, SCContributionLocation, SCLocalityType, SCPollChoiceType, SCPollType, SCFeedUnitType, SCFeedUnitActivityType, SCFeedObjectType, SCFeedPostType, SCFeedDiscussionType, SCFeedStatusType, SCFeedObjectTypologyType, SCFeedUnitActivityTypologyType, SCFeedTypologyType, SCCommentTypologyType, SCCommentsOrderBy, SCCommentType, SCPrivateMessageType, SCPrivateMessageStatusType, SCPrivateMessageFileType, SCMessageFileType, SCNotificationTypologyType, SCNotificationAggregatedType, SCNotificationCommentType, SCNotificationConnectionAcceptType, SCNotificationConnectionRequestType, SCNotificationPrivateMessageType, SCNotificationMentionType, SCNotificationType, SCNotificationBlockedUserType, SCNotificationCollapsedForType, SCNotificationCustomNotificationType, SCNotificationDeletedForType, SCNotificationFollowType, SCNotificationKindlyNoticeType, SCNotificationUnBlockedUserType, SCNotificationUnDeletedForType, SCNotificationUserFollowType, SCNotificationVoteUpType, SCCustomNotificationType, SCNotificationTopicType, SCIncubatorType, SCNotificationIncubatorType, SCPrizeType };
|
|
8
|
+
export { SCBroadcastMessageBannerType, SCBannerType, SCBroadcastMessageType, SCCustomAdvPosition, SCCustomAdvType, SCAuthTokenType, SCUserFields, SCUserType, SCUserSettingsType, SCUserStatus, SCUserBlockedSettingsType, SCTagType, SCCategoryType, SCEmbedType, SCMediaType, SCContributionLocation, SCLocalityType, SCPollChoiceType, SCPollType, SCFeedUnitType, SCFeedUnitActivityType, SCFeedObjectType, SCFeedPostType, SCFeedDiscussionType, SCFeedStatusType, SCFeedObjectTypologyType, SCFeedUnitActivityTypologyType, SCFeedTypologyType, SCCommentTypologyType, SCCommentsOrderBy, SCCommentType, SCPrivateMessageType, SCPrivateMessageStatusType, SCPrivateMessageFileType, SCMessageFileType, SCNotificationTypologyType, SCNotificationAggregatedType, SCNotificationCommentType, SCNotificationConnectionAcceptType, SCNotificationConnectionRequestType, SCNotificationPrivateMessageType, SCNotificationMentionType, SCNotificationType, SCNotificationBlockedUserType, SCNotificationCollapsedForType, SCNotificationCustomNotificationType, SCNotificationDeletedForType, SCNotificationFollowType, SCNotificationKindlyNoticeType, SCNotificationUnBlockedUserType, SCNotificationUnDeletedForType, SCNotificationUserFollowType, SCNotificationVoteUpType, SCCustomNotificationType, SCNotificationTopicType, SCIncubatorType, SCNotificationIncubatorType, SCPrizeType, SCWebhookEndpointType, SCWebhookEndpointAttemptType, SCWebhookEndpointSecretType, SCWebhookEventsType };
|
|
9
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../types/src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,4BAA4B,EAC5B,YAAY,EACZ,sBAAsB,EACtB,eAAe,EACf,mBAAmB,EACnB,eAAe,EACf,YAAY,EACZ,UAAU,EACV,kBAAkB,EAClB,YAAY,EACZ,yBAAyB,EACzB,SAAS,EACT,cAAc,EACd,WAAW,EACX,WAAW,EACX,sBAAsB,EACtB,cAAc,EACd,gBAAgB,EAChB,UAAU,EACV,cAAc,EACd,sBAAsB,EACtB,gBAAgB,EAChB,cAAc,EACd,oBAAoB,EACpB,gBAAgB,EAChB,wBAAwB,EACxB,8BAA8B,EAC9B,kBAAkB,EAClB,qBAAqB,EACrB,iBAAiB,EACjB,aAAa,EACb,oBAAoB,EACpB,0BAA0B,EAC1B,wBAAwB,EACxB,iBAAiB,EACjB,0BAA0B,EAC1B,4BAA4B,EAC5B,yBAAyB,EACzB,kCAAkC,EAClC,mCAAmC,EACnC,gCAAgC,EAChC,yBAAyB,EACzB,kBAAkB,EAClB,6BAA6B,EAC7B,8BAA8B,EAC9B,oCAAoC,EACpC,4BAA4B,EAC5B,wBAAwB,EACxB,8BAA8B,EAC9B,+BAA+B,EAC/B,8BAA8B,EAC9B,4BAA4B,EAC5B,wBAAwB,EACxB,wBAAwB,EACxB,eAAe,EACf,2BAA2B,EAC3B,uBAAuB,EACvB,WAAW,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../types/src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,4BAA4B,EAC5B,YAAY,EACZ,sBAAsB,EACtB,eAAe,EACf,mBAAmB,EACnB,eA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,oBAAoB,EACpB,0BAA0B,EAC1B,wBAAwB,EACxB,iBAAiB,EACjB,0BAA0B,EAC1B,4BAA4B,EAC5B,yBAAyB,EACzB,kCAAkC,EAClC,mCAAmC,EACnC,gCAAgC,EAChC,yBAAyB,EACzB,kBAAkB,EAClB,6BAA6B,EAC7B,8BAA8B,EAC9B,oCAAoC,EACpC,4BAA4B,EAC5B,wBAAwB,EACxB,8BAA8B,EAC9B,+BAA+B,EAC/B,8BAA8B,EAC9B,4BAA4B,EAC5B,wBAAwB,EACxB,wBAAwB,EACxB,uBAAuB,EACvB,eAAe,EACf,2BAA2B,EAC3B,WAAW,EACX,qBAAqB,EACrB,4BAA4B,EAC5B,2BAA2B,EAC3B,mBAAmB,EACpB,CAAC"}
|
|
@@ -15,8 +15,9 @@ import { SCCustomNotificationType } from './customNotification';
|
|
|
15
15
|
import { SCPrizeType } from './prize';
|
|
16
16
|
import { SCFeedUnitType, SCFeedUnitActivityType, SCFeedObjectType, SCFeedPostType, SCFeedDiscussionType, SCFeedStatusType, SCFeedObjectTypologyType, SCFeedUnitActivityTypologyType, SCFeedTypologyType } from './feed';
|
|
17
17
|
import { SCNotificationTypologyType, SCNotificationAggregatedType, SCNotificationCommentType, SCNotificationConnectionAcceptType, SCNotificationConnectionRequestType, SCNotificationPrivateMessageType, SCNotificationMentionType, SCNotificationType, SCNotificationBlockedUserType, SCNotificationCollapsedForType, SCNotificationCustomNotificationType, SCNotificationDeletedForType, SCNotificationFollowType, SCNotificationKindlyNoticeType, SCNotificationUnBlockedUserType, SCNotificationUnDeletedForType, SCNotificationUserFollowType, SCNotificationVoteUpType, SCNotificationIncubatorType, SCNotificationTopicType } from './notification';
|
|
18
|
+
import { SCWebhookEndpointType, SCWebhookEndpointAttemptType, SCWebhookEndpointSecretType, SCWebhookEventsType } from './webhook';
|
|
18
19
|
/**
|
|
19
20
|
* Exports all types
|
|
20
21
|
*/
|
|
21
|
-
export { SCBannerType, SCBroadcastMessageBannerType, SCBroadcastMessageType, SCAuthTokenType, SCUserFields, SCUserType, SCUserSettingsType, SCUserStatus, SCUserBlockedSettingsType, SCTagType, SCCategoryType, SCCustomAdvPosition, SCCustomAdvType, SCEmbedType, SCMediaType, SCContributionLocation, SCLocalityType, SCPollChoiceType, SCPollType, SCFeedUnitType, SCFeedUnitActivityType, SCFeedObjectType, SCFeedPostType, SCFeedDiscussionType, SCFeedStatusType, SCFeedObjectTypologyType, SCFeedUnitActivityTypologyType, SCFeedTypologyType, SCCommentTypologyType, SCCommentsOrderBy, SCCommentType, SCPrivateMessageType, SCPrivateMessageStatusType, SCPrivateMessageFileType, SCMessageFileType, SCNotificationTypologyType, SCNotificationAggregatedType, SCNotificationCommentType, SCNotificationConnectionAcceptType, SCNotificationConnectionRequestType, SCNotificationPrivateMessageType, SCNotificationMentionType, SCNotificationType, SCNotificationBlockedUserType, SCNotificationCollapsedForType, SCNotificationCustomNotificationType, SCNotificationDeletedForType, SCNotificationFollowType, SCNotificationKindlyNoticeType, SCNotificationUnBlockedUserType, SCNotificationUnDeletedForType, SCNotificationUserFollowType, SCNotificationVoteUpType, SCCustomNotificationType, SCNotificationTopicType, SCIncubatorType, SCNotificationIncubatorType, SCPrizeType };
|
|
22
|
+
export { SCBannerType, SCBroadcastMessageBannerType, SCBroadcastMessageType, SCAuthTokenType, SCUserFields, SCUserType, SCUserSettingsType, SCUserStatus, SCUserBlockedSettingsType, SCTagType, SCCategoryType, SCCustomAdvPosition, SCCustomAdvType, SCEmbedType, SCMediaType, SCContributionLocation, SCLocalityType, SCPollChoiceType, SCPollType, SCFeedUnitType, SCFeedUnitActivityType, SCFeedObjectType, SCFeedPostType, SCFeedDiscussionType, SCFeedStatusType, SCFeedObjectTypologyType, SCFeedUnitActivityTypologyType, SCFeedTypologyType, SCCommentTypologyType, SCCommentsOrderBy, SCCommentType, SCPrivateMessageType, SCPrivateMessageStatusType, SCPrivateMessageFileType, SCMessageFileType, SCNotificationTypologyType, SCNotificationAggregatedType, SCNotificationCommentType, SCNotificationConnectionAcceptType, SCNotificationConnectionRequestType, SCNotificationPrivateMessageType, SCNotificationMentionType, SCNotificationType, SCNotificationBlockedUserType, SCNotificationCollapsedForType, SCNotificationCustomNotificationType, SCNotificationDeletedForType, SCNotificationFollowType, SCNotificationKindlyNoticeType, SCNotificationUnBlockedUserType, SCNotificationUnDeletedForType, SCNotificationUserFollowType, SCNotificationVoteUpType, SCCustomNotificationType, SCNotificationTopicType, SCIncubatorType, SCNotificationIncubatorType, SCPrizeType, SCWebhookEndpointType, SCWebhookEndpointAttemptType, SCWebhookEndpointSecretType, SCWebhookEventsType };
|
|
22
23
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../types/src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,QAAQ,CAAC;AACvC,OAAO,EAAC,YAAY,EAAE,4BAA4B,EAAE,sBAAsB,EAAC,MAAM,oBAAoB,CAAC;AACtG,OAAO,EAAC,mBAAmB,EAAE,eAAe,EAAC,MAAM,aAAa,CAAC;AACjE,OAAO,EAAC,UAAU,EAAE,yBAAyB,EAAE,YAAY,EAAE,kBAAkB,EAAE,YAAY,EAAC,MAAM,QAAQ,CAAC;AAC7G,OAAO,EAAC,SAAS,EAAC,MAAM,OAAO,CAAC;AAChC,OAAO,EAAC,cAAc,EAAC,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAC,WAAW,EAAC,MAAM,SAAS,CAAC;AACpC,OAAO,EAAC,WAAW,EAAC,MAAM,SAAS,CAAC;AACpC,OAAO,EAAC,sBAAsB,EAAE,cAAc,EAAC,MAAM,YAAY,CAAC;AAClE,OAAO,EAAC,gBAAgB,EAAE,UAAU,EAAC,MAAM,QAAQ,CAAC;AACpD,OAAO,EAAC,aAAa,EAAE,qBAAqB,EAAE,iBAAiB,EAAC,MAAM,WAAW,CAAC;AAClF,OAAO,EAAC,oBAAoB,E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Z,yBAAyB,EACzB,SAAS,EACT,cAAc,EACd,mBAAmB,EACnB,eAAe,EACf,WAAW,EACX,WAAW,EACX,sBAAsB,EACtB,cAAc,EACd,gBAAgB,EAChB,UAAU,EACV,cAAc,EACd,sBAAsB,EACtB,gBAAgB,EAChB,cAAc,EACd,oBAAoB,EACpB,gBAAgB,EAChB,wBAAwB,EACxB,8BAA8B,EAC9B,kBAAkB,EAClB,qBAAqB,EACrB,iBAAiB,EACjB,aAAa,EACb,oBAAoB,EACpB,0BAA0B,EAC1B,wBAAwB,EACxB,iBAAiB,EACjB,0BAA0B,EAC1B,4BAA4B,EAC5B,yBAAyB,EACzB,kCAAkC,EAClC,mCAAmC,EACnC,gCAAgC,EAChC,yBAAyB,EACzB,kBAAkB,EAClB,6BAA6B,EAC7B,8BAA8B,EAC9B,oCAAoC,EACpC,4BAA4B,EAC5B,wBAAwB,EACxB,8BAA8B,EAC9B,+BAA+B,EAC/B,8BAA8B,EAC9B,4BAA4B,EAC5B,wBAAwB,EACxB,wBAAwB,EACxB,uBAAuB,EACvB,eAAe,EACf,2BAA2B,EAC3B,WAAW,EACX,qBAAqB,EACrB,4BAA4B,EAC5B,2BAA2B,EAC3B,mBAAmB,EACpB,CAAC"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Interface SCWebhookEndpointType
|
|
3
|
+
* Webhook Schema
|
|
4
|
+
*/
|
|
5
|
+
export interface SCWebhookEndpointType {
|
|
6
|
+
/**
|
|
7
|
+
* Webhook id
|
|
8
|
+
*/
|
|
9
|
+
id: number;
|
|
10
|
+
/**
|
|
11
|
+
* Webhook creation date-time
|
|
12
|
+
*/
|
|
13
|
+
created_at: Date | string;
|
|
14
|
+
/**
|
|
15
|
+
* Webhook update date-time
|
|
16
|
+
*/
|
|
17
|
+
updated_at: Date | string;
|
|
18
|
+
/**
|
|
19
|
+
* Active status
|
|
20
|
+
*/
|
|
21
|
+
is_active: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Webhook target
|
|
24
|
+
*/
|
|
25
|
+
target: string;
|
|
26
|
+
/**
|
|
27
|
+
* Webhook description
|
|
28
|
+
*/
|
|
29
|
+
description: string;
|
|
30
|
+
/**
|
|
31
|
+
* Webhook events
|
|
32
|
+
*/
|
|
33
|
+
events: SCWebhookEventsType[];
|
|
34
|
+
/**
|
|
35
|
+
* Webhook SSL certificates for HTTPS requests.
|
|
36
|
+
*/
|
|
37
|
+
ssl_cert_verification: boolean;
|
|
38
|
+
}
|
|
39
|
+
export interface SCWebhookEndpointAttemptType {
|
|
40
|
+
/**
|
|
41
|
+
* Webhook attempt id
|
|
42
|
+
*/
|
|
43
|
+
id: number;
|
|
44
|
+
/**
|
|
45
|
+
* Webhook attempt creation date-time
|
|
46
|
+
*/
|
|
47
|
+
created_at: Date | string;
|
|
48
|
+
/**
|
|
49
|
+
* Webhook attempt event
|
|
50
|
+
*/
|
|
51
|
+
event: SCWebhookEventsType[];
|
|
52
|
+
/**
|
|
53
|
+
* Webhook attempt sent date-time
|
|
54
|
+
*/
|
|
55
|
+
sent_at: Date | string;
|
|
56
|
+
/**
|
|
57
|
+
* Active status
|
|
58
|
+
*/
|
|
59
|
+
http_request_body: string;
|
|
60
|
+
/**
|
|
61
|
+
* Http request signature header
|
|
62
|
+
*/
|
|
63
|
+
http_request_signature_header: string;
|
|
64
|
+
/**
|
|
65
|
+
* Http response code
|
|
66
|
+
*/
|
|
67
|
+
http_response_code: number;
|
|
68
|
+
/**
|
|
69
|
+
* Http response body
|
|
70
|
+
*/
|
|
71
|
+
http_response_body: string;
|
|
72
|
+
/**
|
|
73
|
+
* Date time of next retry
|
|
74
|
+
*/
|
|
75
|
+
next_retry: Date | string;
|
|
76
|
+
}
|
|
77
|
+
export interface SCWebhookEndpointSecretType {
|
|
78
|
+
signing_secret: string;
|
|
79
|
+
}
|
|
80
|
+
export interface SCWebhookEventsType {
|
|
81
|
+
/**
|
|
82
|
+
* Webhook event type: contains the name of the event that triggered the webhook
|
|
83
|
+
* example: "category.follow"
|
|
84
|
+
*/
|
|
85
|
+
type: string;
|
|
86
|
+
/**
|
|
87
|
+
* Creation date time
|
|
88
|
+
*/
|
|
89
|
+
added_at: Date | string;
|
|
90
|
+
}
|
|
91
|
+
//# sourceMappingURL=webhook.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhook.d.ts","sourceRoot":"","sources":["../../../../../../types/src/types/webhook.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,UAAU,EAAE,IAAI,GAAG,MAAM,CAAC;IAC1B;;OAEG;IACH,UAAU,EAAE,IAAI,GAAG,MAAM,CAAC;IAC1B;;OAEG;IACH,SAAS,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,MAAM,EAAE,mBAAmB,EAAE,CAAC;IAC9B;;OAEG;IACH,qBAAqB,EAAE,OAAO,CAAC;CAChC;AAED,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,UAAU,EAAE,IAAI,GAAG,MAAM,CAAC;IAC1B;;OAEG;IACH,KAAK,EAAE,mBAAmB,EAAE,CAAC;IAC7B;;OAEG;IACH,OAAO,EAAE,IAAI,GAAG,MAAM,CAAC;IACvB;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,6BAA6B,EAAE,MAAM,CAAC;IACtC;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,UAAU,EAAE,IAAI,GAAG,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,2BAA2B;IAC1C,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,QAAQ,EAAE,IAAI,GAAG,MAAM,CAAC;CACzB"}
|