@posty5/n8n-nodes-posty5 2.0.0 → 3.0.0
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/README.md +7 -7
- package/dist/nodes/Posty5FormSubmission/Posty5FormSubmission.node.d.ts.map +1 -1
- package/dist/nodes/Posty5FormSubmission/Posty5FormSubmission.node.js +41 -72
- package/dist/nodes/Posty5FormSubmission/Posty5FormSubmission.node.js.map +1 -1
- package/dist/nodes/Posty5HtmlHosting/Posty5HtmlHosting.node.d.ts.map +1 -1
- package/dist/nodes/Posty5HtmlHosting/Posty5HtmlHosting.node.js +93 -84
- package/dist/nodes/Posty5HtmlHosting/Posty5HtmlHosting.node.js.map +1 -1
- package/dist/nodes/Posty5QrCode/Posty5QrCode.node.d.ts.map +1 -1
- package/dist/nodes/Posty5QrCode/Posty5QrCode.node.js +73 -118
- package/dist/nodes/Posty5QrCode/Posty5QrCode.node.js.map +1 -1
- package/dist/nodes/Posty5ShortLink/Posty5ShortLink.node.d.ts.map +1 -1
- package/dist/nodes/Posty5ShortLink/Posty5ShortLink.node.js +59 -78
- package/dist/nodes/Posty5ShortLink/Posty5ShortLink.node.js.map +1 -1
- package/dist/nodes/{Posty5SocialPublisherTask/Posty5SocialPublisherTask.node.d.ts → Posty5SocialPublisherPost/Posty5SocialPublisherPost.node.d.ts} +2 -2
- package/dist/nodes/Posty5SocialPublisherPost/Posty5SocialPublisherPost.node.d.ts.map +1 -0
- package/dist/nodes/{Posty5SocialPublisherTask/Posty5SocialPublisherTask.node.js → Posty5SocialPublisherPost/Posty5SocialPublisherPost.node.js} +151 -116
- package/dist/nodes/Posty5SocialPublisherPost/Posty5SocialPublisherPost.node.js.map +1 -0
- package/dist/nodes/Posty5SocialPublisherWorkspace/Posty5SocialPublisherWorkspace.node.d.ts.map +1 -1
- package/dist/nodes/Posty5SocialPublisherWorkspace/Posty5SocialPublisherWorkspace.node.js +31 -159
- package/dist/nodes/Posty5SocialPublisherWorkspace/Posty5SocialPublisherWorkspace.node.js.map +1 -1
- package/dist/types/common.d.ts +58 -0
- package/dist/types/common.d.ts.map +1 -0
- package/dist/types/common.js +7 -0
- package/dist/types/common.js.map +1 -0
- package/dist/types/form-submission.types.d.ts +110 -0
- package/dist/types/form-submission.types.d.ts.map +1 -0
- package/dist/types/form-submission.types.js +7 -0
- package/dist/types/form-submission.types.js.map +1 -0
- package/dist/types/html-hosting.types.d.ts +177 -0
- package/dist/types/html-hosting.types.d.ts.map +1 -0
- package/dist/types/html-hosting.types.js +7 -0
- package/dist/types/html-hosting.types.js.map +1 -0
- package/dist/types/qr-code.types.d.ts +259 -0
- package/dist/types/qr-code.types.d.ts.map +1 -0
- package/dist/types/qr-code.types.js +7 -0
- package/dist/types/qr-code.types.js.map +1 -0
- package/dist/types/short-link.types.d.ts +156 -0
- package/dist/types/short-link.types.d.ts.map +1 -0
- package/dist/types/short-link.types.js +7 -0
- package/dist/types/short-link.types.js.map +1 -0
- package/dist/types/task.types.d.ts +332 -0
- package/dist/types/task.types.d.ts.map +1 -0
- package/dist/types/task.types.js +7 -0
- package/dist/types/task.types.js.map +1 -0
- package/dist/types/workspace.types.d.ts +105 -0
- package/dist/types/workspace.types.d.ts.map +1 -0
- package/dist/types/workspace.types.js +7 -0
- package/dist/types/workspace.types.js.map +1 -0
- package/dist/utils/api.helpers.d.ts +40 -0
- package/dist/utils/api.helpers.d.ts.map +1 -0
- package/dist/utils/api.helpers.js +101 -0
- package/dist/utils/api.helpers.js.map +1 -0
- package/dist/utils/constants.d.ts +22 -0
- package/dist/utils/constants.d.ts.map +1 -0
- package/dist/utils/constants.js +25 -0
- package/dist/utils/constants.js.map +1 -0
- package/package.json +9 -14
- package/dist/nodes/Posty5SocialPublisherTask/Posty5SocialPublisherTask.node.d.ts.map +0 -1
- package/dist/nodes/Posty5SocialPublisherTask/Posty5SocialPublisherTask.node.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"html-hosting.types.js","sourceRoot":"","sources":["../../types/html-hosting.types.ts"],"names":[],"mappings":";AAAA;;;GAGG"}
|
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* QR Code Types for Posty5 N8N Nodes
|
|
3
|
+
* Type definitions for QR Code operations
|
|
4
|
+
*/
|
|
5
|
+
import { IPaginationResponse } from './common';
|
|
6
|
+
/**
|
|
7
|
+
* QR Code status type
|
|
8
|
+
*/
|
|
9
|
+
export type QrCodeStatusType = 'new' | 'pending' | 'rejected' | 'approved';
|
|
10
|
+
/**
|
|
11
|
+
* QR Code target type
|
|
12
|
+
*/
|
|
13
|
+
export type QrCodeTargetType = 'freeText' | 'email' | 'wifi' | 'call' | 'sms' | 'url' | 'geolocation';
|
|
14
|
+
/**
|
|
15
|
+
* Preview reason (moderation score)
|
|
16
|
+
*/
|
|
17
|
+
export interface IPreviewReason {
|
|
18
|
+
category: string;
|
|
19
|
+
score: number;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* QR Code template information
|
|
23
|
+
*/
|
|
24
|
+
export interface IQRCodeTemplate {
|
|
25
|
+
_id: string;
|
|
26
|
+
name?: string;
|
|
27
|
+
numberOfSubQrCodes?: number;
|
|
28
|
+
numberOfSubShortLinks?: number;
|
|
29
|
+
qrCodeDownloadURL?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* QR Code page information
|
|
33
|
+
*/
|
|
34
|
+
export interface IQRCodePageInfo {
|
|
35
|
+
title?: string;
|
|
36
|
+
description?: string;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* QR Code styling options
|
|
40
|
+
*/
|
|
41
|
+
export interface IQRCodeOptions {
|
|
42
|
+
text?: string;
|
|
43
|
+
width?: number;
|
|
44
|
+
height?: number;
|
|
45
|
+
correctLevel?: number;
|
|
46
|
+
dotScale?: number;
|
|
47
|
+
dotScaleTiming_H?: number;
|
|
48
|
+
dotScaleTiming_V?: number;
|
|
49
|
+
dotScaleAO?: number;
|
|
50
|
+
dotScaleAI?: number;
|
|
51
|
+
quietZone?: number;
|
|
52
|
+
quietZoneColor?: string;
|
|
53
|
+
colorDark?: string;
|
|
54
|
+
colorLight?: string;
|
|
55
|
+
PO_TL?: string;
|
|
56
|
+
PO_TR?: string;
|
|
57
|
+
PO_BL?: string;
|
|
58
|
+
PI_TL?: string;
|
|
59
|
+
PI_TR?: string;
|
|
60
|
+
PI_BL?: string;
|
|
61
|
+
AI?: string;
|
|
62
|
+
AO?: string;
|
|
63
|
+
timing_V?: string;
|
|
64
|
+
timing_H?: string;
|
|
65
|
+
title?: string;
|
|
66
|
+
titleFont?: string;
|
|
67
|
+
titleColor?: string;
|
|
68
|
+
titleBackgroundColor?: string;
|
|
69
|
+
titleHeight?: number;
|
|
70
|
+
titleTop?: number;
|
|
71
|
+
logo?: string;
|
|
72
|
+
logoWidth?: number;
|
|
73
|
+
logoHeight?: number;
|
|
74
|
+
logoBackgroundColor?: string;
|
|
75
|
+
logoBackgroundTransparent?: boolean;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Email QR code target
|
|
79
|
+
*/
|
|
80
|
+
export interface IQRCodeEmailTarget {
|
|
81
|
+
email?: string;
|
|
82
|
+
subject?: string;
|
|
83
|
+
body?: string;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Free text QR code target
|
|
87
|
+
*/
|
|
88
|
+
export interface IQRFreeTextTarget {
|
|
89
|
+
text?: string;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* WiFi QR code target
|
|
93
|
+
*/
|
|
94
|
+
export interface IQRCodeWifiTarget {
|
|
95
|
+
name?: string;
|
|
96
|
+
authenticationType?: string;
|
|
97
|
+
password?: string;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Call QR code target
|
|
101
|
+
*/
|
|
102
|
+
export interface IQRCodeCallTarget {
|
|
103
|
+
phoneNumber?: string;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* SMS QR code target
|
|
107
|
+
*/
|
|
108
|
+
export interface IQRCodeSmsTarget {
|
|
109
|
+
phoneNumber?: string;
|
|
110
|
+
message?: string;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* URL QR code target
|
|
114
|
+
*/
|
|
115
|
+
export interface IQRCodeUrlTarget {
|
|
116
|
+
url?: string;
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Geolocation QR code target
|
|
120
|
+
*/
|
|
121
|
+
export interface IQRCodeGeolocationTarget {
|
|
122
|
+
latitude: string | number;
|
|
123
|
+
longitude: string | number;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* QR Code target configuration
|
|
127
|
+
*/
|
|
128
|
+
export interface IQRCodeTarget {
|
|
129
|
+
type: QrCodeTargetType;
|
|
130
|
+
freeText?: IQRFreeTextTarget;
|
|
131
|
+
email?: IQRCodeEmailTarget;
|
|
132
|
+
wifi?: IQRCodeWifiTarget;
|
|
133
|
+
call?: IQRCodeCallTarget;
|
|
134
|
+
sms?: IQRCodeSmsTarget;
|
|
135
|
+
geolocation?: IQRCodeGeolocationTarget;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* QR Code response interface
|
|
139
|
+
*/
|
|
140
|
+
export interface IQRCode {
|
|
141
|
+
_id: string;
|
|
142
|
+
qrCodeId: string;
|
|
143
|
+
templateId?: string;
|
|
144
|
+
numberOfVisitors?: number;
|
|
145
|
+
isEnableLandingPage?: boolean;
|
|
146
|
+
name: string;
|
|
147
|
+
lastVisitorDate?: string;
|
|
148
|
+
refId?: string;
|
|
149
|
+
tag?: string;
|
|
150
|
+
isEnableMonetization?: boolean;
|
|
151
|
+
pageInfo?: IQRCodePageInfo;
|
|
152
|
+
qrCodeTarget?: IQRCodeTarget;
|
|
153
|
+
status: QrCodeStatusType;
|
|
154
|
+
previewReasons?: IPreviewReason[];
|
|
155
|
+
createdAt?: string;
|
|
156
|
+
updatedAt?: string;
|
|
157
|
+
qrCodeLandingPageURL?: string;
|
|
158
|
+
qrCodeDownloadURL?: string;
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* QR Code full details response (from GET by ID)
|
|
162
|
+
*/
|
|
163
|
+
export interface IQRCodeFullDetailsResponse extends IQRCode {
|
|
164
|
+
userId?: string;
|
|
165
|
+
template?: IQRCodeTemplate;
|
|
166
|
+
templateType?: string;
|
|
167
|
+
options?: IQRCodeOptions;
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* Base request interface for creating/updating QR codes
|
|
171
|
+
*/
|
|
172
|
+
export interface IQRCodeRequest {
|
|
173
|
+
name?: string;
|
|
174
|
+
templateId: string;
|
|
175
|
+
refId?: string;
|
|
176
|
+
tag?: string;
|
|
177
|
+
customLandingId?: string;
|
|
178
|
+
isEnableMonetization?: boolean;
|
|
179
|
+
pageInfo?: IQRCodePageInfo;
|
|
180
|
+
}
|
|
181
|
+
export interface ICreateFreeTextQRCodeRequest extends IQRCodeRequest {
|
|
182
|
+
text: string;
|
|
183
|
+
}
|
|
184
|
+
export interface ICreateEmailQRCodeRequest extends IQRCodeRequest {
|
|
185
|
+
email: IQRCodeEmailTarget;
|
|
186
|
+
}
|
|
187
|
+
export interface ICreateWifiQRCodeRequest extends IQRCodeRequest {
|
|
188
|
+
wifi: IQRCodeWifiTarget;
|
|
189
|
+
}
|
|
190
|
+
export interface ICreateCallQRCodeRequest extends IQRCodeRequest {
|
|
191
|
+
call: IQRCodeCallTarget;
|
|
192
|
+
}
|
|
193
|
+
export interface ICreateSMSQRCodeRequest extends IQRCodeRequest {
|
|
194
|
+
sms: IQRCodeSmsTarget;
|
|
195
|
+
}
|
|
196
|
+
export interface ICreateURLQRCodeRequest extends IQRCodeRequest {
|
|
197
|
+
url: IQRCodeUrlTarget;
|
|
198
|
+
}
|
|
199
|
+
export interface ICreateGeolocationQRCodeRequest extends IQRCodeRequest {
|
|
200
|
+
geolocation: IQRCodeGeolocationTarget;
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* Request interface for updating a QR code
|
|
204
|
+
*/
|
|
205
|
+
export interface IUpdateQRCodeRequest extends IQRCodeRequest {
|
|
206
|
+
name: string;
|
|
207
|
+
}
|
|
208
|
+
export interface IUpdateFreeTextQRCodeRequest extends IUpdateQRCodeRequest {
|
|
209
|
+
qrCodeTarget: {
|
|
210
|
+
text: string;
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
export interface IUpdateEmailQRCodeRequest extends IUpdateQRCodeRequest {
|
|
214
|
+
email: IQRCodeEmailTarget;
|
|
215
|
+
}
|
|
216
|
+
export interface IUpdateWifiQRCodeRequest extends IUpdateQRCodeRequest {
|
|
217
|
+
wifi: IQRCodeWifiTarget;
|
|
218
|
+
}
|
|
219
|
+
export interface IUpdateCallQRCodeRequest extends IUpdateQRCodeRequest {
|
|
220
|
+
call: IQRCodeCallTarget;
|
|
221
|
+
}
|
|
222
|
+
export interface IUpdateSMSQRCodeRequest extends IUpdateQRCodeRequest {
|
|
223
|
+
sms: IQRCodeSmsTarget;
|
|
224
|
+
}
|
|
225
|
+
export interface IUpdateURLQRCodeRequest extends IUpdateQRCodeRequest {
|
|
226
|
+
url: IQRCodeUrlTarget;
|
|
227
|
+
}
|
|
228
|
+
export interface IUpdateGeolocationQRCodeRequest extends IUpdateQRCodeRequest {
|
|
229
|
+
geolocation: IQRCodeGeolocationTarget;
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
* List parameters for searching QR codes
|
|
233
|
+
*/
|
|
234
|
+
export interface IListParams {
|
|
235
|
+
name?: string;
|
|
236
|
+
qrCodeId?: string;
|
|
237
|
+
templateId?: string;
|
|
238
|
+
tag?: string;
|
|
239
|
+
refId?: string;
|
|
240
|
+
isEnableMonetization?: boolean;
|
|
241
|
+
status?: QrCodeStatusType;
|
|
242
|
+
createdFrom?: string;
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* Lookup item for QR code selection
|
|
246
|
+
*/
|
|
247
|
+
export interface IQRCodeLookupItem {
|
|
248
|
+
_id: string;
|
|
249
|
+
name: string;
|
|
250
|
+
}
|
|
251
|
+
export type ICreateQRCodeResponse = IQRCode;
|
|
252
|
+
export type IUpdateQRCodeResponse = IQRCode;
|
|
253
|
+
export type IGetQRCodeResponse = IQRCodeFullDetailsResponse;
|
|
254
|
+
export type ISearchQRCodesResponse = IPaginationResponse<IQRCode>;
|
|
255
|
+
export type ILookupQRCodesResponse = IQRCodeLookupItem[];
|
|
256
|
+
export interface IDeleteQRCodeResponse {
|
|
257
|
+
message: string;
|
|
258
|
+
}
|
|
259
|
+
//# sourceMappingURL=qr-code.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"qr-code.types.d.ts","sourceRoot":"","sources":["../../types/qr-code.types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAE/C;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,KAAK,GAAG,SAAS,GAAG,UAAU,GAAG,UAAU,CAAC;AAE3E;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,UAAU,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,GAAG,KAAK,GAAG,aAAa,CAAC;AAEtG;;GAEG;AACH,MAAM,WAAW,cAAc;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC/B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC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AAE,MAAM,CAAC;IACpB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IACjC,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;CACb;AAGD,MAAM,MAAM,qBAAqB,GAAG,OAAO,CAAC;AAC5C,MAAM,MAAM,qBAAqB,GAAG,OAAO,CAAC;AAC5C,MAAM,MAAM,kBAAkB,GAAG,0BAA0B,CAAC;AAC5D,MAAM,MAAM,sBAAsB,GAAG,mBAAmB,CAAC,OAAO,CAAC,CAAC;AAClE,MAAM,MAAM,sBAAsB,GAAG,iBAAiB,EAAE,CAAC;AACzD,MAAM,WAAW,qBAAqB;IACrC,OAAO,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"qr-code.types.js","sourceRoot":"","sources":["../../types/qr-code.types.ts"],"names":[],"mappings":";AAAA;;;GAGG"}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Short Link Types for Posty5 N8N Nodes
|
|
3
|
+
* Type definitions for Short Link operations
|
|
4
|
+
*/
|
|
5
|
+
import { IPaginationResponse } from './common';
|
|
6
|
+
/**
|
|
7
|
+
* Short link status type
|
|
8
|
+
*/
|
|
9
|
+
export type ShortLinkStatusType = 'new' | 'pending' | 'rejected' | 'approved';
|
|
10
|
+
/**
|
|
11
|
+
* Preview reason (moderation score)
|
|
12
|
+
*/
|
|
13
|
+
export interface IPreviewReason {
|
|
14
|
+
category: string;
|
|
15
|
+
score: number;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* QR Code template information
|
|
19
|
+
*/
|
|
20
|
+
export interface IQRCodeTemplate {
|
|
21
|
+
_id: string;
|
|
22
|
+
name?: string;
|
|
23
|
+
numberOfSubQrCodes?: number;
|
|
24
|
+
numberOfSubShortLinks?: number;
|
|
25
|
+
qrCodeDownloadURL?: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Short link metadata information
|
|
29
|
+
*/
|
|
30
|
+
export interface IShortLinkMetaData {
|
|
31
|
+
image?: string;
|
|
32
|
+
title?: string;
|
|
33
|
+
description?: string;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Page info response
|
|
37
|
+
*/
|
|
38
|
+
export interface IPageInfoResponse {
|
|
39
|
+
title?: string;
|
|
40
|
+
description?: string;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Short link response interface
|
|
44
|
+
*/
|
|
45
|
+
export interface IShortLinkResponse {
|
|
46
|
+
_id: string;
|
|
47
|
+
shorterLink: string;
|
|
48
|
+
shortLinkId: string;
|
|
49
|
+
name?: string;
|
|
50
|
+
baseUrl?: string;
|
|
51
|
+
status: ShortLinkStatusType;
|
|
52
|
+
refId?: string;
|
|
53
|
+
tag?: string;
|
|
54
|
+
numberOfVisitors: number;
|
|
55
|
+
numberOfReports?: number;
|
|
56
|
+
lastVisitorDate?: string;
|
|
57
|
+
createdAt?: string;
|
|
58
|
+
updatedAt?: string;
|
|
59
|
+
templateId?: string;
|
|
60
|
+
qrCodeTemplateName?: string;
|
|
61
|
+
isEnableLandingPage?: boolean;
|
|
62
|
+
isEnableMonetization?: boolean;
|
|
63
|
+
pageInfo?: IPageInfoResponse;
|
|
64
|
+
qrCodeLandingPageURL: string;
|
|
65
|
+
qrCodeDownloadURL: string;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Short link full details response (from GET by ID)
|
|
69
|
+
*/
|
|
70
|
+
export interface IShortLinkFullDetailsResponse extends IShortLinkResponse {
|
|
71
|
+
androidUrl?: string;
|
|
72
|
+
iosUrl?: string;
|
|
73
|
+
numberOfCreated?: number;
|
|
74
|
+
templateType?: string;
|
|
75
|
+
template?: IQRCodeTemplate;
|
|
76
|
+
userId?: string;
|
|
77
|
+
linkMetaData?: IShortLinkMetaData;
|
|
78
|
+
user?: any;
|
|
79
|
+
apiKeyId?: string;
|
|
80
|
+
apiKey?: any;
|
|
81
|
+
isSupportIOSDeepUrl?: boolean;
|
|
82
|
+
isSupportAndroidDeepUrl?: boolean;
|
|
83
|
+
isForDeepLink?: boolean;
|
|
84
|
+
createdFrom?: string;
|
|
85
|
+
previewReasons?: IPreviewReason[];
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Short link lookup item
|
|
89
|
+
*/
|
|
90
|
+
export interface IShortLinkLookupItem {
|
|
91
|
+
_id: string;
|
|
92
|
+
name: string;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Page info for requests
|
|
96
|
+
*/
|
|
97
|
+
export interface IPageInfo {
|
|
98
|
+
title?: string;
|
|
99
|
+
description?: string;
|
|
100
|
+
descriptionIsHtmlFile?: boolean;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Create short link request
|
|
104
|
+
*/
|
|
105
|
+
export interface ICreateShortLinkRequest {
|
|
106
|
+
name?: string | null;
|
|
107
|
+
baseUrl: string;
|
|
108
|
+
refId?: string | null;
|
|
109
|
+
tag?: string | null;
|
|
110
|
+
templateId?: string | null;
|
|
111
|
+
customLandingId?: string | null;
|
|
112
|
+
isEnableMonetization?: boolean | null;
|
|
113
|
+
pageInfo?: IPageInfo;
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Update short link request
|
|
117
|
+
*/
|
|
118
|
+
export interface IUpdateShortLinkRequest {
|
|
119
|
+
name?: string | null;
|
|
120
|
+
baseUrl: string;
|
|
121
|
+
refId?: string | null;
|
|
122
|
+
tag?: string | null;
|
|
123
|
+
templateId?: string | null;
|
|
124
|
+
templateType?: string | null;
|
|
125
|
+
recaptcha?: string | null;
|
|
126
|
+
isEnableLandingPage?: boolean | null;
|
|
127
|
+
isEnableMonetization?: boolean | null;
|
|
128
|
+
pageInfo?: IPageInfo;
|
|
129
|
+
subCategory?: number | null;
|
|
130
|
+
createdFrom?: string | null;
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* List parameters for filtering
|
|
134
|
+
*/
|
|
135
|
+
export interface IListParams {
|
|
136
|
+
baseUrl?: string;
|
|
137
|
+
name?: string;
|
|
138
|
+
'pageinfo.title'?: string;
|
|
139
|
+
createdFrom?: string;
|
|
140
|
+
shortLinkId?: string;
|
|
141
|
+
refId?: string;
|
|
142
|
+
tag?: string;
|
|
143
|
+
templateId?: string;
|
|
144
|
+
status?: string;
|
|
145
|
+
isForDeepLink?: boolean;
|
|
146
|
+
isEnableMonetization?: boolean;
|
|
147
|
+
}
|
|
148
|
+
export type ISearchShortLinkResponse = IPaginationResponse<IShortLinkResponse>;
|
|
149
|
+
export type ILookupShortLinkResponse = IShortLinkLookupItem[];
|
|
150
|
+
export type ICreateShortLinkResponse = IShortLinkResponse;
|
|
151
|
+
export type IUpdateShortLinkResponse = IShortLinkResponse;
|
|
152
|
+
export type IGetShortLinkResponse = IShortLinkFullDetailsResponse;
|
|
153
|
+
export interface IDeleteShortLinkResponse {
|
|
154
|
+
message: string;
|
|
155
|
+
}
|
|
156
|
+
//# sourceMappingURL=short-link.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"short-link.types.d.ts","sourceRoot":"","sources":["../../types/short-link.types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAE/C;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,KAAK,GAAG,SAAS,GAAG,UAAU,GAAG,UAAU,CAAC;AAE9E;;GAEG;AACH,MAAM,WAAW,cAAc;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,MA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