@zennify/sdk-js 2.1.2 → 2.2.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/dist/lib/api/index.js +6 -6
- package/dist/lib/api/sdk.gen.js +60 -60
- package/package.json +1 -1
- package/src/lib/api/index.ts +29 -29
- package/src/lib/api/sdk.gen.ts +109 -111
- package/src/lib/api/types.gen.ts +441 -440
- package/src/main.ts +4 -4
- package/translations/en_US.json +22 -22
- package/translations/pt_BR.json +22 -22
- package/types/lib/api/index.d.ts +2 -2
- package/types/lib/api/sdk.gen.d.ts +22 -22
- package/types/lib/api/types.gen.d.ts +287 -286
- package/types/main.d.ts +3 -3
package/src/lib/api/types.gen.ts
CHANGED
|
@@ -45,303 +45,6 @@ export type GetServiceApiSchemaResponses = {
|
|
|
45
45
|
200: unknown;
|
|
46
46
|
};
|
|
47
47
|
|
|
48
|
-
export type DeleteStoreDiscordPanelData = {
|
|
49
|
-
body?: never;
|
|
50
|
-
path: {
|
|
51
|
-
storeId: string;
|
|
52
|
-
panelId: string;
|
|
53
|
-
};
|
|
54
|
-
query?: never;
|
|
55
|
-
url: "/stores/{storeId}/discord_panels/{panelId}";
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
export type DeleteStoreDiscordPanelErrors = {
|
|
59
|
-
/**
|
|
60
|
-
* User not authenticated.
|
|
61
|
-
*/
|
|
62
|
-
401: DefaultError;
|
|
63
|
-
/**
|
|
64
|
-
* This store has expired.
|
|
65
|
-
*/
|
|
66
|
-
402: DefaultError;
|
|
67
|
-
/**
|
|
68
|
-
* Permission denied.
|
|
69
|
-
*/
|
|
70
|
-
403: DefaultError;
|
|
71
|
-
/**
|
|
72
|
-
* Not Found
|
|
73
|
-
*/
|
|
74
|
-
404: DefaultError;
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
export type DeleteStoreDiscordPanelError =
|
|
78
|
-
DeleteStoreDiscordPanelErrors[keyof DeleteStoreDiscordPanelErrors];
|
|
79
|
-
|
|
80
|
-
export type DeleteStoreDiscordPanelResponses = {
|
|
81
|
-
/**
|
|
82
|
-
* Discord panel deleted successfully.
|
|
83
|
-
*/
|
|
84
|
-
204: void;
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
export type DeleteStoreDiscordPanelResponse =
|
|
88
|
-
DeleteStoreDiscordPanelResponses[keyof DeleteStoreDiscordPanelResponses];
|
|
89
|
-
|
|
90
|
-
export type UpdateStoreDiscordPanelData = {
|
|
91
|
-
body?: {
|
|
92
|
-
/**
|
|
93
|
-
* Public name. Must be 3 to 50 valid characters.
|
|
94
|
-
*/
|
|
95
|
-
name?: string;
|
|
96
|
-
placeholder?: null | string;
|
|
97
|
-
/**
|
|
98
|
-
* Discord panel description.
|
|
99
|
-
*/
|
|
100
|
-
description?: string;
|
|
101
|
-
/**
|
|
102
|
-
* Products displayed in the panel.
|
|
103
|
-
*/
|
|
104
|
-
products?: Array<{
|
|
105
|
-
/**
|
|
106
|
-
* Product id to show in the panel.
|
|
107
|
-
*/
|
|
108
|
-
id: number;
|
|
109
|
-
emoji?: null | string;
|
|
110
|
-
label?: null | string;
|
|
111
|
-
}>;
|
|
112
|
-
};
|
|
113
|
-
path: {
|
|
114
|
-
storeId: string;
|
|
115
|
-
panelId: string;
|
|
116
|
-
};
|
|
117
|
-
query?: never;
|
|
118
|
-
url: "/stores/{storeId}/discord_panels/{panelId}";
|
|
119
|
-
};
|
|
120
|
-
|
|
121
|
-
export type UpdateStoreDiscordPanelErrors = {
|
|
122
|
-
/**
|
|
123
|
-
* Invalid JSON payload.
|
|
124
|
-
*/
|
|
125
|
-
400: DefaultError;
|
|
126
|
-
/**
|
|
127
|
-
* User not authenticated.
|
|
128
|
-
*/
|
|
129
|
-
401: DefaultError;
|
|
130
|
-
/**
|
|
131
|
-
* This store has expired.
|
|
132
|
-
*/
|
|
133
|
-
402: DefaultError;
|
|
134
|
-
/**
|
|
135
|
-
* Permission denied.
|
|
136
|
-
*/
|
|
137
|
-
403: DefaultError;
|
|
138
|
-
/**
|
|
139
|
-
* Not Found
|
|
140
|
-
*/
|
|
141
|
-
404: DefaultError;
|
|
142
|
-
/**
|
|
143
|
-
* Payload too large.
|
|
144
|
-
*/
|
|
145
|
-
413: DefaultError;
|
|
146
|
-
/**
|
|
147
|
-
* Unprocessable Entity
|
|
148
|
-
*/
|
|
149
|
-
422: DefaultError;
|
|
150
|
-
};
|
|
151
|
-
|
|
152
|
-
export type UpdateStoreDiscordPanelError =
|
|
153
|
-
UpdateStoreDiscordPanelErrors[keyof UpdateStoreDiscordPanelErrors];
|
|
154
|
-
|
|
155
|
-
export type UpdateStoreDiscordPanelResponses = {
|
|
156
|
-
/**
|
|
157
|
-
* Discord panel updated successfully.
|
|
158
|
-
*/
|
|
159
|
-
204: void;
|
|
160
|
-
};
|
|
161
|
-
|
|
162
|
-
export type UpdateStoreDiscordPanelResponse =
|
|
163
|
-
UpdateStoreDiscordPanelResponses[keyof UpdateStoreDiscordPanelResponses];
|
|
164
|
-
|
|
165
|
-
export type GetStoreDiscordPanelsData = {
|
|
166
|
-
body?: never;
|
|
167
|
-
path: {
|
|
168
|
-
storeId: string;
|
|
169
|
-
};
|
|
170
|
-
query?: never;
|
|
171
|
-
url: "/stores/{storeId}/discord_panels";
|
|
172
|
-
};
|
|
173
|
-
|
|
174
|
-
export type GetStoreDiscordPanelsErrors = {
|
|
175
|
-
/**
|
|
176
|
-
* User not authenticated.
|
|
177
|
-
*/
|
|
178
|
-
401: DefaultError;
|
|
179
|
-
/**
|
|
180
|
-
* This store has expired.
|
|
181
|
-
*/
|
|
182
|
-
402: DefaultError;
|
|
183
|
-
/**
|
|
184
|
-
* Permission denied.
|
|
185
|
-
*/
|
|
186
|
-
403: DefaultError;
|
|
187
|
-
/**
|
|
188
|
-
* Unknown store.
|
|
189
|
-
*/
|
|
190
|
-
404: DefaultError;
|
|
191
|
-
};
|
|
192
|
-
|
|
193
|
-
export type GetStoreDiscordPanelsError =
|
|
194
|
-
GetStoreDiscordPanelsErrors[keyof GetStoreDiscordPanelsErrors];
|
|
195
|
-
|
|
196
|
-
export type GetStoreDiscordPanelsResponses = {
|
|
197
|
-
/**
|
|
198
|
-
* Discord panels listed successfully.
|
|
199
|
-
*/
|
|
200
|
-
200: Array<{
|
|
201
|
-
id: number;
|
|
202
|
-
name: string;
|
|
203
|
-
placeholder: null | string;
|
|
204
|
-
description: null | string;
|
|
205
|
-
created_at: number;
|
|
206
|
-
owner_id: number;
|
|
207
|
-
store_id: number;
|
|
208
|
-
icon_id?: null | string;
|
|
209
|
-
banner_id?: null | string;
|
|
210
|
-
products: Array<{
|
|
211
|
-
id: number;
|
|
212
|
-
emoji: null | string;
|
|
213
|
-
label: null | string;
|
|
214
|
-
}>;
|
|
215
|
-
}>;
|
|
216
|
-
};
|
|
217
|
-
|
|
218
|
-
export type GetStoreDiscordPanelsResponse =
|
|
219
|
-
GetStoreDiscordPanelsResponses[keyof GetStoreDiscordPanelsResponses];
|
|
220
|
-
|
|
221
|
-
export type CreateStoreDiscordPanelData = {
|
|
222
|
-
body?: {
|
|
223
|
-
/**
|
|
224
|
-
* Public name. Must be 3 to 50 valid characters.
|
|
225
|
-
*/
|
|
226
|
-
name: string;
|
|
227
|
-
/**
|
|
228
|
-
* Discord panel description.
|
|
229
|
-
*/
|
|
230
|
-
description?: string;
|
|
231
|
-
placeholder?: null | string;
|
|
232
|
-
};
|
|
233
|
-
path: {
|
|
234
|
-
storeId: string;
|
|
235
|
-
};
|
|
236
|
-
query?: never;
|
|
237
|
-
url: "/stores/{storeId}/discord_panels";
|
|
238
|
-
};
|
|
239
|
-
|
|
240
|
-
export type CreateStoreDiscordPanelErrors = {
|
|
241
|
-
/**
|
|
242
|
-
* Invalid JSON payload.
|
|
243
|
-
*/
|
|
244
|
-
400: DefaultError;
|
|
245
|
-
/**
|
|
246
|
-
* User not authenticated.
|
|
247
|
-
*/
|
|
248
|
-
401: DefaultError;
|
|
249
|
-
/**
|
|
250
|
-
* This store has expired.
|
|
251
|
-
*/
|
|
252
|
-
402: DefaultError;
|
|
253
|
-
/**
|
|
254
|
-
* Permission denied.
|
|
255
|
-
*/
|
|
256
|
-
403: DefaultError;
|
|
257
|
-
/**
|
|
258
|
-
* Unknown store.
|
|
259
|
-
*/
|
|
260
|
-
404: DefaultError;
|
|
261
|
-
/**
|
|
262
|
-
* Payload too large.
|
|
263
|
-
*/
|
|
264
|
-
413: DefaultError;
|
|
265
|
-
/**
|
|
266
|
-
* Unprocessable Entity
|
|
267
|
-
*/
|
|
268
|
-
422: DefaultError;
|
|
269
|
-
};
|
|
270
|
-
|
|
271
|
-
export type CreateStoreDiscordPanelError =
|
|
272
|
-
CreateStoreDiscordPanelErrors[keyof CreateStoreDiscordPanelErrors];
|
|
273
|
-
|
|
274
|
-
export type CreateStoreDiscordPanelResponses = {
|
|
275
|
-
/**
|
|
276
|
-
* Discord panel created successfully.
|
|
277
|
-
*/
|
|
278
|
-
200: {
|
|
279
|
-
/**
|
|
280
|
-
* Discord panel ID.
|
|
281
|
-
*/
|
|
282
|
-
id: number;
|
|
283
|
-
};
|
|
284
|
-
};
|
|
285
|
-
|
|
286
|
-
export type CreateStoreDiscordPanelResponse =
|
|
287
|
-
CreateStoreDiscordPanelResponses[keyof CreateStoreDiscordPanelResponses];
|
|
288
|
-
|
|
289
|
-
export type PostStoreDiscordPanelMessageData = {
|
|
290
|
-
body?: {
|
|
291
|
-
/**
|
|
292
|
-
* Discord channel id where the panel message should be posted.
|
|
293
|
-
*/
|
|
294
|
-
channel_id: string;
|
|
295
|
-
};
|
|
296
|
-
path: {
|
|
297
|
-
storeId: string;
|
|
298
|
-
panelId: string;
|
|
299
|
-
};
|
|
300
|
-
query?: never;
|
|
301
|
-
url: "/stores/{storeId}/discord_panels/{panelId}/discord_messages";
|
|
302
|
-
};
|
|
303
|
-
|
|
304
|
-
export type PostStoreDiscordPanelMessageErrors = {
|
|
305
|
-
/**
|
|
306
|
-
* Invalid JSON payload.
|
|
307
|
-
*/
|
|
308
|
-
400: DefaultError;
|
|
309
|
-
/**
|
|
310
|
-
* User not authenticated.
|
|
311
|
-
*/
|
|
312
|
-
401: DefaultError;
|
|
313
|
-
/**
|
|
314
|
-
* This store has expired.
|
|
315
|
-
*/
|
|
316
|
-
402: DefaultError;
|
|
317
|
-
/**
|
|
318
|
-
* Permission denied.
|
|
319
|
-
*/
|
|
320
|
-
403: DefaultError;
|
|
321
|
-
/**
|
|
322
|
-
* Not Found
|
|
323
|
-
*/
|
|
324
|
-
404: DefaultError;
|
|
325
|
-
/**
|
|
326
|
-
* Payload too large.
|
|
327
|
-
*/
|
|
328
|
-
413: DefaultError;
|
|
329
|
-
/**
|
|
330
|
-
* Unknown channel.
|
|
331
|
-
*/
|
|
332
|
-
422: DefaultError;
|
|
333
|
-
};
|
|
334
|
-
|
|
335
|
-
export type PostStoreDiscordPanelMessageError =
|
|
336
|
-
PostStoreDiscordPanelMessageErrors[keyof PostStoreDiscordPanelMessageErrors];
|
|
337
|
-
|
|
338
|
-
export type PostStoreDiscordPanelMessageResponses = {
|
|
339
|
-
/**
|
|
340
|
-
* Discord panel message queued successfully.
|
|
341
|
-
*/
|
|
342
|
-
202: unknown;
|
|
343
|
-
};
|
|
344
|
-
|
|
345
48
|
export type PostStoreProductDiscordMessageData = {
|
|
346
49
|
body?: {
|
|
347
50
|
/**
|
|
@@ -1090,24 +793,273 @@ export type UpdateStoreDiscordChannelsResponses = {
|
|
|
1090
793
|
204: void;
|
|
1091
794
|
};
|
|
1092
795
|
|
|
1093
|
-
export type UpdateStoreDiscordChannelsResponse =
|
|
1094
|
-
UpdateStoreDiscordChannelsResponses[keyof UpdateStoreDiscordChannelsResponses];
|
|
1095
|
-
|
|
1096
|
-
export type CreateStoreDiscordEmojisData = {
|
|
796
|
+
export type UpdateStoreDiscordChannelsResponse =
|
|
797
|
+
UpdateStoreDiscordChannelsResponses[keyof UpdateStoreDiscordChannelsResponses];
|
|
798
|
+
|
|
799
|
+
export type CreateStoreDiscordEmojisData = {
|
|
800
|
+
body?: {
|
|
801
|
+
emojis: Array<Blob | File>;
|
|
802
|
+
};
|
|
803
|
+
path: {
|
|
804
|
+
storeId: string;
|
|
805
|
+
serverId: string;
|
|
806
|
+
};
|
|
807
|
+
query?: never;
|
|
808
|
+
url: "/stores/{storeId}/app/discord/{serverId}/emojis";
|
|
809
|
+
};
|
|
810
|
+
|
|
811
|
+
export type CreateStoreDiscordEmojisErrors = {
|
|
812
|
+
/**
|
|
813
|
+
* Invalid Multipart payload.
|
|
814
|
+
*/
|
|
815
|
+
400: DefaultError;
|
|
816
|
+
/**
|
|
817
|
+
* User not authenticated.
|
|
818
|
+
*/
|
|
819
|
+
401: DefaultError;
|
|
820
|
+
/**
|
|
821
|
+
* This store has expired.
|
|
822
|
+
*/
|
|
823
|
+
402: DefaultError;
|
|
824
|
+
/**
|
|
825
|
+
* Permission denied.
|
|
826
|
+
*/
|
|
827
|
+
403: DefaultError;
|
|
828
|
+
/**
|
|
829
|
+
* Unknown store.
|
|
830
|
+
*/
|
|
831
|
+
404: DefaultError;
|
|
832
|
+
/**
|
|
833
|
+
* Payload too large.
|
|
834
|
+
*/
|
|
835
|
+
413: DefaultError;
|
|
836
|
+
/**
|
|
837
|
+
* Unprocessable Entity
|
|
838
|
+
*/
|
|
839
|
+
422: DefaultError;
|
|
840
|
+
/**
|
|
841
|
+
* Your actions are being limited.
|
|
842
|
+
*/
|
|
843
|
+
429: DefaultError;
|
|
844
|
+
};
|
|
845
|
+
|
|
846
|
+
export type CreateStoreDiscordEmojisError =
|
|
847
|
+
CreateStoreDiscordEmojisErrors[keyof CreateStoreDiscordEmojisErrors];
|
|
848
|
+
|
|
849
|
+
export type CreateStoreDiscordEmojisResponses = {
|
|
850
|
+
/**
|
|
851
|
+
* Discord emojis created successfully.
|
|
852
|
+
*/
|
|
853
|
+
200: Array<{
|
|
854
|
+
/**
|
|
855
|
+
* Discord emoji id.
|
|
856
|
+
*/
|
|
857
|
+
id: string;
|
|
858
|
+
/**
|
|
859
|
+
* Discord emoji name.
|
|
860
|
+
*/
|
|
861
|
+
name: string;
|
|
862
|
+
}>;
|
|
863
|
+
};
|
|
864
|
+
|
|
865
|
+
export type CreateStoreDiscordEmojisResponse =
|
|
866
|
+
CreateStoreDiscordEmojisResponses[keyof CreateStoreDiscordEmojisResponses];
|
|
867
|
+
|
|
868
|
+
export type GetStoreDiscordBotData = {
|
|
869
|
+
body?: never;
|
|
870
|
+
path: {
|
|
871
|
+
storeId: string;
|
|
872
|
+
};
|
|
873
|
+
query?: never;
|
|
874
|
+
url: "/stores/{storeId}/app/discord";
|
|
875
|
+
};
|
|
876
|
+
|
|
877
|
+
export type GetStoreDiscordBotErrors = {
|
|
878
|
+
/**
|
|
879
|
+
* User not authenticated.
|
|
880
|
+
*/
|
|
881
|
+
401: DefaultError;
|
|
882
|
+
/**
|
|
883
|
+
* This store has expired.
|
|
884
|
+
*/
|
|
885
|
+
402: DefaultError;
|
|
886
|
+
/**
|
|
887
|
+
* Permission denied.
|
|
888
|
+
*/
|
|
889
|
+
403: DefaultError;
|
|
890
|
+
/**
|
|
891
|
+
* Unknown store.
|
|
892
|
+
*/
|
|
893
|
+
404: DefaultError;
|
|
894
|
+
};
|
|
895
|
+
|
|
896
|
+
export type GetStoreDiscordBotError =
|
|
897
|
+
GetStoreDiscordBotErrors[keyof GetStoreDiscordBotErrors];
|
|
898
|
+
|
|
899
|
+
export type GetStoreDiscordBotResponses = {
|
|
900
|
+
/**
|
|
901
|
+
* Discord bot status returned successfully.
|
|
902
|
+
*/
|
|
903
|
+
200:
|
|
904
|
+
| {
|
|
905
|
+
valid: false;
|
|
906
|
+
}
|
|
907
|
+
| {
|
|
908
|
+
valid: true;
|
|
909
|
+
/**
|
|
910
|
+
* Discord bot id.
|
|
911
|
+
*/
|
|
912
|
+
id: string;
|
|
913
|
+
/**
|
|
914
|
+
* Discord bot username.
|
|
915
|
+
*/
|
|
916
|
+
username: string;
|
|
917
|
+
avatar: null | string;
|
|
918
|
+
/**
|
|
919
|
+
* Discord bot discriminator.
|
|
920
|
+
*/
|
|
921
|
+
discriminator: string;
|
|
922
|
+
banner: null | string;
|
|
923
|
+
/**
|
|
924
|
+
* Discord bot bio.
|
|
925
|
+
*/
|
|
926
|
+
bio: string;
|
|
927
|
+
guilds: Array<{
|
|
928
|
+
/**
|
|
929
|
+
* Discord guild id.
|
|
930
|
+
*/
|
|
931
|
+
id: string;
|
|
932
|
+
/**
|
|
933
|
+
* Discord guild name.
|
|
934
|
+
*/
|
|
935
|
+
name: string;
|
|
936
|
+
icon: null | string;
|
|
937
|
+
banner: boolean;
|
|
938
|
+
hasAdmin: boolean;
|
|
939
|
+
/**
|
|
940
|
+
* Approximate guild member count.
|
|
941
|
+
*/
|
|
942
|
+
members: number;
|
|
943
|
+
}>;
|
|
944
|
+
};
|
|
945
|
+
};
|
|
946
|
+
|
|
947
|
+
export type GetStoreDiscordBotResponse =
|
|
948
|
+
GetStoreDiscordBotResponses[keyof GetStoreDiscordBotResponses];
|
|
949
|
+
|
|
950
|
+
export type DeleteStoreDiscordServerData = {
|
|
951
|
+
body?: {
|
|
952
|
+
/**
|
|
953
|
+
* Discord guild id.
|
|
954
|
+
*/
|
|
955
|
+
id: string;
|
|
956
|
+
};
|
|
957
|
+
path: {
|
|
958
|
+
storeId: string;
|
|
959
|
+
};
|
|
960
|
+
query?: never;
|
|
961
|
+
url: "/stores/{storeId}/app/discord/servers";
|
|
962
|
+
};
|
|
963
|
+
|
|
964
|
+
export type DeleteStoreDiscordServerErrors = {
|
|
965
|
+
/**
|
|
966
|
+
* Invalid JSON payload.
|
|
967
|
+
*/
|
|
968
|
+
400: DefaultError;
|
|
969
|
+
/**
|
|
970
|
+
* User not authenticated.
|
|
971
|
+
*/
|
|
972
|
+
401: DefaultError;
|
|
973
|
+
/**
|
|
974
|
+
* This store has expired.
|
|
975
|
+
*/
|
|
976
|
+
402: DefaultError;
|
|
977
|
+
/**
|
|
978
|
+
* Permission denied.
|
|
979
|
+
*/
|
|
980
|
+
403: DefaultError;
|
|
981
|
+
/**
|
|
982
|
+
* Unknown store.
|
|
983
|
+
*/
|
|
984
|
+
404: DefaultError;
|
|
985
|
+
/**
|
|
986
|
+
* Payload too large.
|
|
987
|
+
*/
|
|
988
|
+
413: DefaultError;
|
|
989
|
+
/**
|
|
990
|
+
* Unprocessable Entity
|
|
991
|
+
*/
|
|
992
|
+
422: DefaultError;
|
|
993
|
+
};
|
|
994
|
+
|
|
995
|
+
export type DeleteStoreDiscordServerError =
|
|
996
|
+
DeleteStoreDiscordServerErrors[keyof DeleteStoreDiscordServerErrors];
|
|
997
|
+
|
|
998
|
+
export type DeleteStoreDiscordServerResponses = {
|
|
999
|
+
/**
|
|
1000
|
+
* Discord guild removed successfully.
|
|
1001
|
+
*/
|
|
1002
|
+
204: void;
|
|
1003
|
+
};
|
|
1004
|
+
|
|
1005
|
+
export type DeleteStoreDiscordServerResponse =
|
|
1006
|
+
DeleteStoreDiscordServerResponses[keyof DeleteStoreDiscordServerResponses];
|
|
1007
|
+
|
|
1008
|
+
export type GetStoreDiscordServersData = {
|
|
1009
|
+
body?: never;
|
|
1010
|
+
path: {
|
|
1011
|
+
storeId: string;
|
|
1012
|
+
};
|
|
1013
|
+
query?: never;
|
|
1014
|
+
url: "/stores/{storeId}/app/discord/servers";
|
|
1015
|
+
};
|
|
1016
|
+
|
|
1017
|
+
export type GetStoreDiscordServersErrors = {
|
|
1018
|
+
/**
|
|
1019
|
+
* User not authenticated.
|
|
1020
|
+
*/
|
|
1021
|
+
401: DefaultError;
|
|
1022
|
+
/**
|
|
1023
|
+
* This store has expired.
|
|
1024
|
+
*/
|
|
1025
|
+
402: DefaultError;
|
|
1026
|
+
/**
|
|
1027
|
+
* Permission denied.
|
|
1028
|
+
*/
|
|
1029
|
+
403: DefaultError;
|
|
1030
|
+
/**
|
|
1031
|
+
* Unknown store.
|
|
1032
|
+
*/
|
|
1033
|
+
404: DefaultError;
|
|
1034
|
+
};
|
|
1035
|
+
|
|
1036
|
+
export type GetStoreDiscordServersError =
|
|
1037
|
+
GetStoreDiscordServersErrors[keyof GetStoreDiscordServersErrors];
|
|
1038
|
+
|
|
1039
|
+
export type GetStoreDiscordServersResponses = {
|
|
1040
|
+
/**
|
|
1041
|
+
* Discord guilds listed successfully.
|
|
1042
|
+
*/
|
|
1043
|
+
200: unknown;
|
|
1044
|
+
};
|
|
1045
|
+
|
|
1046
|
+
export type UpdateStoreDiscordBotTokenData = {
|
|
1097
1047
|
body?: {
|
|
1098
|
-
|
|
1048
|
+
/**
|
|
1049
|
+
* Discord bot token.
|
|
1050
|
+
*/
|
|
1051
|
+
token: string;
|
|
1099
1052
|
};
|
|
1100
1053
|
path: {
|
|
1101
1054
|
storeId: string;
|
|
1102
|
-
serverId: string;
|
|
1103
1055
|
};
|
|
1104
1056
|
query?: never;
|
|
1105
|
-
url: "/stores/{storeId}/app/discord/
|
|
1057
|
+
url: "/stores/{storeId}/app/discord/token";
|
|
1106
1058
|
};
|
|
1107
1059
|
|
|
1108
|
-
export type
|
|
1060
|
+
export type UpdateStoreDiscordBotTokenErrors = {
|
|
1109
1061
|
/**
|
|
1110
|
-
* Invalid
|
|
1062
|
+
* Invalid JSON payload.
|
|
1111
1063
|
*/
|
|
1112
1064
|
400: DefaultError;
|
|
1113
1065
|
/**
|
|
@@ -1126,6 +1078,10 @@ export type CreateStoreDiscordEmojisErrors = {
|
|
|
1126
1078
|
* Unknown store.
|
|
1127
1079
|
*/
|
|
1128
1080
|
404: DefaultError;
|
|
1081
|
+
/**
|
|
1082
|
+
* Bot already configured.
|
|
1083
|
+
*/
|
|
1084
|
+
409: DefaultError;
|
|
1129
1085
|
/**
|
|
1130
1086
|
* Payload too large.
|
|
1131
1087
|
*/
|
|
@@ -1134,44 +1090,32 @@ export type CreateStoreDiscordEmojisErrors = {
|
|
|
1134
1090
|
* Unprocessable Entity
|
|
1135
1091
|
*/
|
|
1136
1092
|
422: DefaultError;
|
|
1137
|
-
/**
|
|
1138
|
-
* Your actions are being limited.
|
|
1139
|
-
*/
|
|
1140
|
-
429: DefaultError;
|
|
1141
1093
|
};
|
|
1142
1094
|
|
|
1143
|
-
export type
|
|
1144
|
-
|
|
1095
|
+
export type UpdateStoreDiscordBotTokenError =
|
|
1096
|
+
UpdateStoreDiscordBotTokenErrors[keyof UpdateStoreDiscordBotTokenErrors];
|
|
1145
1097
|
|
|
1146
|
-
export type
|
|
1098
|
+
export type UpdateStoreDiscordBotTokenResponses = {
|
|
1147
1099
|
/**
|
|
1148
|
-
* Discord
|
|
1100
|
+
* Discord bot token updated successfully.
|
|
1149
1101
|
*/
|
|
1150
|
-
|
|
1151
|
-
/**
|
|
1152
|
-
* Discord emoji id.
|
|
1153
|
-
*/
|
|
1154
|
-
id: string;
|
|
1155
|
-
/**
|
|
1156
|
-
* Discord emoji name.
|
|
1157
|
-
*/
|
|
1158
|
-
name: string;
|
|
1159
|
-
}>;
|
|
1102
|
+
204: void;
|
|
1160
1103
|
};
|
|
1161
1104
|
|
|
1162
|
-
export type
|
|
1163
|
-
|
|
1105
|
+
export type UpdateStoreDiscordBotTokenResponse =
|
|
1106
|
+
UpdateStoreDiscordBotTokenResponses[keyof UpdateStoreDiscordBotTokenResponses];
|
|
1164
1107
|
|
|
1165
|
-
export type
|
|
1108
|
+
export type DeleteStoreCatalogData = {
|
|
1166
1109
|
body?: never;
|
|
1167
1110
|
path: {
|
|
1168
1111
|
storeId: string;
|
|
1112
|
+
catalogId: string;
|
|
1169
1113
|
};
|
|
1170
1114
|
query?: never;
|
|
1171
|
-
url: "/stores/{storeId}/
|
|
1115
|
+
url: "/stores/{storeId}/catalogs/{catalogId}";
|
|
1172
1116
|
};
|
|
1173
1117
|
|
|
1174
|
-
export type
|
|
1118
|
+
export type DeleteStoreCatalogErrors = {
|
|
1175
1119
|
/**
|
|
1176
1120
|
* User not authenticated.
|
|
1177
1121
|
*/
|
|
@@ -1185,80 +1129,56 @@ export type GetStoreDiscordBotErrors = {
|
|
|
1185
1129
|
*/
|
|
1186
1130
|
403: DefaultError;
|
|
1187
1131
|
/**
|
|
1188
|
-
*
|
|
1132
|
+
* Not Found
|
|
1189
1133
|
*/
|
|
1190
1134
|
404: DefaultError;
|
|
1191
1135
|
};
|
|
1192
1136
|
|
|
1193
|
-
export type
|
|
1194
|
-
|
|
1137
|
+
export type DeleteStoreCatalogError =
|
|
1138
|
+
DeleteStoreCatalogErrors[keyof DeleteStoreCatalogErrors];
|
|
1195
1139
|
|
|
1196
|
-
export type
|
|
1140
|
+
export type DeleteStoreCatalogResponses = {
|
|
1197
1141
|
/**
|
|
1198
|
-
*
|
|
1142
|
+
* Catalog deleted successfully.
|
|
1199
1143
|
*/
|
|
1200
|
-
|
|
1201
|
-
| {
|
|
1202
|
-
valid: false;
|
|
1203
|
-
}
|
|
1204
|
-
| {
|
|
1205
|
-
valid: true;
|
|
1206
|
-
/**
|
|
1207
|
-
* Discord bot id.
|
|
1208
|
-
*/
|
|
1209
|
-
id: string;
|
|
1210
|
-
/**
|
|
1211
|
-
* Discord bot username.
|
|
1212
|
-
*/
|
|
1213
|
-
username: string;
|
|
1214
|
-
avatar: null | string;
|
|
1215
|
-
/**
|
|
1216
|
-
* Discord bot discriminator.
|
|
1217
|
-
*/
|
|
1218
|
-
discriminator: string;
|
|
1219
|
-
banner: null | string;
|
|
1220
|
-
/**
|
|
1221
|
-
* Discord bot bio.
|
|
1222
|
-
*/
|
|
1223
|
-
bio: string;
|
|
1224
|
-
guilds: Array<{
|
|
1225
|
-
/**
|
|
1226
|
-
* Discord guild id.
|
|
1227
|
-
*/
|
|
1228
|
-
id: string;
|
|
1229
|
-
/**
|
|
1230
|
-
* Discord guild name.
|
|
1231
|
-
*/
|
|
1232
|
-
name: string;
|
|
1233
|
-
icon: null | string;
|
|
1234
|
-
banner: boolean;
|
|
1235
|
-
hasAdmin: boolean;
|
|
1236
|
-
/**
|
|
1237
|
-
* Approximate guild member count.
|
|
1238
|
-
*/
|
|
1239
|
-
members: number;
|
|
1240
|
-
}>;
|
|
1241
|
-
};
|
|
1144
|
+
204: void;
|
|
1242
1145
|
};
|
|
1243
1146
|
|
|
1244
|
-
export type
|
|
1245
|
-
|
|
1147
|
+
export type DeleteStoreCatalogResponse =
|
|
1148
|
+
DeleteStoreCatalogResponses[keyof DeleteStoreCatalogResponses];
|
|
1246
1149
|
|
|
1247
|
-
export type
|
|
1150
|
+
export type UpdateStoreCatalogData = {
|
|
1248
1151
|
body?: {
|
|
1249
1152
|
/**
|
|
1250
|
-
*
|
|
1153
|
+
* Public name. Must be 3 to 50 valid characters.
|
|
1251
1154
|
*/
|
|
1252
|
-
|
|
1155
|
+
name?: string;
|
|
1156
|
+
placeholder?: null | string;
|
|
1157
|
+
/**
|
|
1158
|
+
* Catalog description.
|
|
1159
|
+
*/
|
|
1160
|
+
description?: string;
|
|
1161
|
+
/**
|
|
1162
|
+
* Products displayed in the catalog.
|
|
1163
|
+
*/
|
|
1164
|
+
products?: Array<{
|
|
1165
|
+
/**
|
|
1166
|
+
* Product id to show in the catalog.
|
|
1167
|
+
*/
|
|
1168
|
+
id: number;
|
|
1169
|
+
emoji?: null | string;
|
|
1170
|
+
label?: null | string;
|
|
1171
|
+
}>;
|
|
1253
1172
|
};
|
|
1254
1173
|
path: {
|
|
1255
1174
|
storeId: string;
|
|
1175
|
+
catalogId: string;
|
|
1256
1176
|
};
|
|
1257
1177
|
query?: never;
|
|
1258
|
-
url: "/stores/{storeId}/
|
|
1178
|
+
url: "/stores/{storeId}/catalogs/{catalogId}";
|
|
1259
1179
|
};
|
|
1260
1180
|
|
|
1261
|
-
export type
|
|
1181
|
+
export type UpdateStoreCatalogErrors = {
|
|
1262
1182
|
/**
|
|
1263
1183
|
* Invalid JSON payload.
|
|
1264
1184
|
*/
|
|
@@ -1276,7 +1196,7 @@ export type DeleteStoreDiscordServerErrors = {
|
|
|
1276
1196
|
*/
|
|
1277
1197
|
403: DefaultError;
|
|
1278
1198
|
/**
|
|
1279
|
-
*
|
|
1199
|
+
* Not Found
|
|
1280
1200
|
*/
|
|
1281
1201
|
404: DefaultError;
|
|
1282
1202
|
/**
|
|
@@ -1289,29 +1209,29 @@ export type DeleteStoreDiscordServerErrors = {
|
|
|
1289
1209
|
422: DefaultError;
|
|
1290
1210
|
};
|
|
1291
1211
|
|
|
1292
|
-
export type
|
|
1293
|
-
|
|
1212
|
+
export type UpdateStoreCatalogError =
|
|
1213
|
+
UpdateStoreCatalogErrors[keyof UpdateStoreCatalogErrors];
|
|
1294
1214
|
|
|
1295
|
-
export type
|
|
1215
|
+
export type UpdateStoreCatalogResponses = {
|
|
1296
1216
|
/**
|
|
1297
|
-
*
|
|
1217
|
+
* Catalog updated successfully.
|
|
1298
1218
|
*/
|
|
1299
1219
|
204: void;
|
|
1300
1220
|
};
|
|
1301
1221
|
|
|
1302
|
-
export type
|
|
1303
|
-
|
|
1222
|
+
export type UpdateStoreCatalogResponse =
|
|
1223
|
+
UpdateStoreCatalogResponses[keyof UpdateStoreCatalogResponses];
|
|
1304
1224
|
|
|
1305
|
-
export type
|
|
1225
|
+
export type GetStoreCatalogsData = {
|
|
1306
1226
|
body?: never;
|
|
1307
1227
|
path: {
|
|
1308
1228
|
storeId: string;
|
|
1309
1229
|
};
|
|
1310
1230
|
query?: never;
|
|
1311
|
-
url: "/stores/{storeId}/
|
|
1231
|
+
url: "/stores/{storeId}/catalogs";
|
|
1312
1232
|
};
|
|
1313
1233
|
|
|
1314
|
-
export type
|
|
1234
|
+
export type GetStoreCatalogsErrors = {
|
|
1315
1235
|
/**
|
|
1316
1236
|
* User not authenticated.
|
|
1317
1237
|
*/
|
|
@@ -1330,31 +1250,54 @@ export type GetStoreDiscordServersErrors = {
|
|
|
1330
1250
|
404: DefaultError;
|
|
1331
1251
|
};
|
|
1332
1252
|
|
|
1333
|
-
export type
|
|
1334
|
-
|
|
1253
|
+
export type GetStoreCatalogsError =
|
|
1254
|
+
GetStoreCatalogsErrors[keyof GetStoreCatalogsErrors];
|
|
1335
1255
|
|
|
1336
|
-
export type
|
|
1256
|
+
export type GetStoreCatalogsResponses = {
|
|
1337
1257
|
/**
|
|
1338
|
-
*
|
|
1258
|
+
* Catalogs listed successfully.
|
|
1339
1259
|
*/
|
|
1340
|
-
200:
|
|
1260
|
+
200: Array<{
|
|
1261
|
+
id: number;
|
|
1262
|
+
name: string;
|
|
1263
|
+
placeholder: null | string;
|
|
1264
|
+
description: null | string;
|
|
1265
|
+
created_at: number;
|
|
1266
|
+
owner_id: number;
|
|
1267
|
+
store_id: number;
|
|
1268
|
+
icon_id?: null | string;
|
|
1269
|
+
banner_id?: null | string;
|
|
1270
|
+
products: Array<{
|
|
1271
|
+
id: number;
|
|
1272
|
+
emoji: null | string;
|
|
1273
|
+
label: null | string;
|
|
1274
|
+
}>;
|
|
1275
|
+
}>;
|
|
1341
1276
|
};
|
|
1342
1277
|
|
|
1343
|
-
export type
|
|
1278
|
+
export type GetStoreCatalogsResponse =
|
|
1279
|
+
GetStoreCatalogsResponses[keyof GetStoreCatalogsResponses];
|
|
1280
|
+
|
|
1281
|
+
export type CreateStoreCatalogData = {
|
|
1344
1282
|
body?: {
|
|
1345
1283
|
/**
|
|
1346
|
-
*
|
|
1284
|
+
* Public name. Must be 3 to 50 valid characters.
|
|
1347
1285
|
*/
|
|
1348
|
-
|
|
1286
|
+
name: string;
|
|
1287
|
+
/**
|
|
1288
|
+
* Catalog description.
|
|
1289
|
+
*/
|
|
1290
|
+
description?: string;
|
|
1291
|
+
placeholder?: null | string;
|
|
1349
1292
|
};
|
|
1350
1293
|
path: {
|
|
1351
1294
|
storeId: string;
|
|
1352
1295
|
};
|
|
1353
1296
|
query?: never;
|
|
1354
|
-
url: "/stores/{storeId}/
|
|
1297
|
+
url: "/stores/{storeId}/catalogs";
|
|
1355
1298
|
};
|
|
1356
1299
|
|
|
1357
|
-
export type
|
|
1300
|
+
export type CreateStoreCatalogErrors = {
|
|
1358
1301
|
/**
|
|
1359
1302
|
* Invalid JSON payload.
|
|
1360
1303
|
*/
|
|
@@ -1375,10 +1318,6 @@ export type UpdateStoreDiscordBotTokenErrors = {
|
|
|
1375
1318
|
* Unknown store.
|
|
1376
1319
|
*/
|
|
1377
1320
|
404: DefaultError;
|
|
1378
|
-
/**
|
|
1379
|
-
* Bot already configured.
|
|
1380
|
-
*/
|
|
1381
|
-
409: DefaultError;
|
|
1382
1321
|
/**
|
|
1383
1322
|
* Payload too large.
|
|
1384
1323
|
*/
|
|
@@ -1389,18 +1328,79 @@ export type UpdateStoreDiscordBotTokenErrors = {
|
|
|
1389
1328
|
422: DefaultError;
|
|
1390
1329
|
};
|
|
1391
1330
|
|
|
1392
|
-
export type
|
|
1393
|
-
|
|
1331
|
+
export type CreateStoreCatalogError =
|
|
1332
|
+
CreateStoreCatalogErrors[keyof CreateStoreCatalogErrors];
|
|
1394
1333
|
|
|
1395
|
-
export type
|
|
1334
|
+
export type CreateStoreCatalogResponses = {
|
|
1396
1335
|
/**
|
|
1397
|
-
*
|
|
1336
|
+
* Catalog created successfully.
|
|
1398
1337
|
*/
|
|
1399
|
-
|
|
1338
|
+
200: {
|
|
1339
|
+
/**
|
|
1340
|
+
* Catalog ID.
|
|
1341
|
+
*/
|
|
1342
|
+
id: number;
|
|
1343
|
+
};
|
|
1400
1344
|
};
|
|
1401
1345
|
|
|
1402
|
-
export type
|
|
1403
|
-
|
|
1346
|
+
export type CreateStoreCatalogResponse =
|
|
1347
|
+
CreateStoreCatalogResponses[keyof CreateStoreCatalogResponses];
|
|
1348
|
+
|
|
1349
|
+
export type PostStoreCatalogMessageData = {
|
|
1350
|
+
body?: {
|
|
1351
|
+
/**
|
|
1352
|
+
* Discord channel id where the catalog message should be posted.
|
|
1353
|
+
*/
|
|
1354
|
+
channel_id: string;
|
|
1355
|
+
};
|
|
1356
|
+
path: {
|
|
1357
|
+
storeId: string;
|
|
1358
|
+
catalogId: string;
|
|
1359
|
+
};
|
|
1360
|
+
query?: never;
|
|
1361
|
+
url: "/stores/{storeId}/catalogs/{catalogId}/discord_messages";
|
|
1362
|
+
};
|
|
1363
|
+
|
|
1364
|
+
export type PostStoreCatalogMessageErrors = {
|
|
1365
|
+
/**
|
|
1366
|
+
* Invalid JSON payload.
|
|
1367
|
+
*/
|
|
1368
|
+
400: DefaultError;
|
|
1369
|
+
/**
|
|
1370
|
+
* User not authenticated.
|
|
1371
|
+
*/
|
|
1372
|
+
401: DefaultError;
|
|
1373
|
+
/**
|
|
1374
|
+
* This store has expired.
|
|
1375
|
+
*/
|
|
1376
|
+
402: DefaultError;
|
|
1377
|
+
/**
|
|
1378
|
+
* Permission denied.
|
|
1379
|
+
*/
|
|
1380
|
+
403: DefaultError;
|
|
1381
|
+
/**
|
|
1382
|
+
* Not Found
|
|
1383
|
+
*/
|
|
1384
|
+
404: DefaultError;
|
|
1385
|
+
/**
|
|
1386
|
+
* Payload too large.
|
|
1387
|
+
*/
|
|
1388
|
+
413: DefaultError;
|
|
1389
|
+
/**
|
|
1390
|
+
* Unknown channel.
|
|
1391
|
+
*/
|
|
1392
|
+
422: DefaultError;
|
|
1393
|
+
};
|
|
1394
|
+
|
|
1395
|
+
export type PostStoreCatalogMessageError =
|
|
1396
|
+
PostStoreCatalogMessageErrors[keyof PostStoreCatalogMessageErrors];
|
|
1397
|
+
|
|
1398
|
+
export type PostStoreCatalogMessageResponses = {
|
|
1399
|
+
/**
|
|
1400
|
+
* Catalog message queued successfully.
|
|
1401
|
+
*/
|
|
1402
|
+
202: unknown;
|
|
1403
|
+
};
|
|
1404
1404
|
|
|
1405
1405
|
export type DeleteStoreCouponData = {
|
|
1406
1406
|
body?: never;
|
|
@@ -1844,19 +1844,19 @@ export type CreateStoreRenewOrderResponse =
|
|
|
1844
1844
|
export type DeleteStoreMediaData = {
|
|
1845
1845
|
body?: {
|
|
1846
1846
|
store?: Array<
|
|
1847
|
-
"
|
|
1847
|
+
"banner" | "icon" | "background_ranking" | "banner_sale_approved"
|
|
1848
1848
|
>;
|
|
1849
1849
|
/**
|
|
1850
1850
|
* Construct a type with a set of properties K of type T
|
|
1851
1851
|
*/
|
|
1852
1852
|
products?: {
|
|
1853
|
-
[key: string]: Array<"
|
|
1853
|
+
[key: string]: Array<"banner" | "icon">;
|
|
1854
1854
|
};
|
|
1855
1855
|
/**
|
|
1856
1856
|
* Construct a type with a set of properties K of type T
|
|
1857
1857
|
*/
|
|
1858
|
-
|
|
1859
|
-
[key: string]: Array<"
|
|
1858
|
+
catalogs?: {
|
|
1859
|
+
[key: string]: Array<"banner" | "icon">;
|
|
1860
1860
|
};
|
|
1861
1861
|
};
|
|
1862
1862
|
path: {
|
|
@@ -1911,19 +1911,19 @@ export type UploadStoreMediaData = {
|
|
|
1911
1911
|
file: Blob | File;
|
|
1912
1912
|
set: {
|
|
1913
1913
|
store?: Array<
|
|
1914
|
-
"
|
|
1914
|
+
"banner" | "icon" | "background_ranking" | "banner_sale_approved"
|
|
1915
1915
|
>;
|
|
1916
1916
|
/**
|
|
1917
1917
|
* Construct a type with a set of properties K of type T
|
|
1918
1918
|
*/
|
|
1919
1919
|
products?: {
|
|
1920
|
-
[key: string]: Array<"
|
|
1920
|
+
[key: string]: Array<"banner" | "icon">;
|
|
1921
1921
|
};
|
|
1922
1922
|
/**
|
|
1923
1923
|
* Construct a type with a set of properties K of type T
|
|
1924
1924
|
*/
|
|
1925
|
-
|
|
1926
|
-
[key: string]: Array<"
|
|
1925
|
+
catalogs?: {
|
|
1926
|
+
[key: string]: Array<"banner" | "icon">;
|
|
1927
1927
|
};
|
|
1928
1928
|
};
|
|
1929
1929
|
};
|
|
@@ -2569,20 +2569,21 @@ export type ListTransactionsResponses = {
|
|
|
2569
2569
|
*/
|
|
2570
2570
|
200: Array<{
|
|
2571
2571
|
id: string;
|
|
2572
|
-
base_value: number;
|
|
2573
|
-
type: "sale" | "transfer" | "withdraw" | "deposit";
|
|
2574
|
-
value: number;
|
|
2575
|
-
created_at: number;
|
|
2576
2572
|
status:
|
|
2573
|
+
| "pending"
|
|
2577
2574
|
| "inactive"
|
|
2578
2575
|
| "invalid-pix-key"
|
|
2579
|
-
| "pending"
|
|
2580
2576
|
| "approved"
|
|
2581
2577
|
| "cancelled"
|
|
2582
2578
|
| "expired"
|
|
2583
2579
|
| "refused"
|
|
2584
2580
|
| "refunded"
|
|
2585
2581
|
| "analysis";
|
|
2582
|
+
value: number;
|
|
2583
|
+
type: "transfer" | "withdraw" | "sale" | "deposit";
|
|
2584
|
+
created_at: number;
|
|
2585
|
+
user2?: null | number;
|
|
2586
|
+
base_value: number;
|
|
2586
2587
|
}>;
|
|
2587
2588
|
};
|
|
2588
2589
|
|
|
@@ -2617,24 +2618,23 @@ export type GetTransactionResponses = {
|
|
|
2617
2618
|
* Transaction returned successfully.
|
|
2618
2619
|
*/
|
|
2619
2620
|
200: {
|
|
2620
|
-
value: number;
|
|
2621
2621
|
id: string;
|
|
2622
2622
|
status:
|
|
2623
|
-
| "approved"
|
|
2624
2623
|
| "pending"
|
|
2625
|
-
| "cancelled"
|
|
2626
|
-
| "refunded"
|
|
2627
2624
|
| "inactive"
|
|
2628
2625
|
| "invalid-pix-key"
|
|
2626
|
+
| "approved"
|
|
2627
|
+
| "cancelled"
|
|
2629
2628
|
| "expired"
|
|
2630
2629
|
| "refused"
|
|
2630
|
+
| "refunded"
|
|
2631
2631
|
| "analysis";
|
|
2632
|
-
|
|
2632
|
+
value: number;
|
|
2633
|
+
type: "transfer" | "withdraw" | "sale" | "deposit";
|
|
2633
2634
|
created_at: number;
|
|
2634
|
-
type: "sale" | "transfer" | "deposit" | "withdraw";
|
|
2635
2635
|
expires_at: number;
|
|
2636
|
+
method: "pix" | "boleto";
|
|
2636
2637
|
entity: "mercadopago" | "semiauto" | "efi" | "wallet-efi";
|
|
2637
|
-
metadata?: unknown;
|
|
2638
2638
|
managed?: null | boolean;
|
|
2639
2639
|
base_value: number;
|
|
2640
2640
|
refunded_value: number;
|
|
@@ -2657,6 +2657,7 @@ export type GetTransactionResponses = {
|
|
|
2657
2657
|
pix_e2eid?: null | string;
|
|
2658
2658
|
pix_qrcode?: null | string;
|
|
2659
2659
|
payer_bank?: null | string;
|
|
2660
|
+
metadata?: unknown;
|
|
2660
2661
|
order: {
|
|
2661
2662
|
id: string;
|
|
2662
2663
|
platform: "discord" | "website" | "marketplace" | "whatsapp" | "telegram";
|
|
@@ -2682,8 +2683,8 @@ export type GetTransactionResponses = {
|
|
|
2682
2683
|
* From T, pick a set of properties whose keys are in the union K
|
|
2683
2684
|
*/
|
|
2684
2685
|
store: {
|
|
2685
|
-
name: string;
|
|
2686
2686
|
id: number;
|
|
2687
|
+
name: string;
|
|
2687
2688
|
icon_id?: null | string;
|
|
2688
2689
|
banner_id?: null | string;
|
|
2689
2690
|
};
|
|
@@ -2696,9 +2697,9 @@ export type GetTransactionResponses = {
|
|
|
2696
2697
|
discord_user_id: string;
|
|
2697
2698
|
};
|
|
2698
2699
|
products: Array<{
|
|
2699
|
-
value: number;
|
|
2700
|
-
name: string;
|
|
2701
2700
|
id: number;
|
|
2701
|
+
name: string;
|
|
2702
|
+
value: number;
|
|
2702
2703
|
icon_id?: null | string;
|
|
2703
2704
|
banner_id?: null | string;
|
|
2704
2705
|
short_description?: null | string;
|
|
@@ -2994,7 +2995,7 @@ export type GetUserResponses = {
|
|
|
2994
2995
|
discord?: string;
|
|
2995
2996
|
};
|
|
2996
2997
|
legal: {
|
|
2997
|
-
status?: "
|
|
2998
|
+
status?: "pending" | "approved" | "rejected";
|
|
2998
2999
|
type?: "cpf" | "cnpj";
|
|
2999
3000
|
rejectedReason?: string;
|
|
3000
3001
|
};
|
|
@@ -3150,7 +3151,7 @@ export type UpdatePixKeyData = {
|
|
|
3150
3151
|
};
|
|
3151
3152
|
path?: never;
|
|
3152
3153
|
query?: never;
|
|
3153
|
-
url: "/users/me/
|
|
3154
|
+
url: "/users/me/payments/semiauto";
|
|
3154
3155
|
};
|
|
3155
3156
|
|
|
3156
3157
|
export type UpdatePixKeyErrors = {
|
|
@@ -3176,7 +3177,7 @@ export type UpdatePixKeyError = UpdatePixKeyErrors[keyof UpdatePixKeyErrors];
|
|
|
3176
3177
|
|
|
3177
3178
|
export type UpdatePixKeyResponses = {
|
|
3178
3179
|
/**
|
|
3179
|
-
*
|
|
3180
|
+
* Semiauto configured succesfully.
|
|
3180
3181
|
*/
|
|
3181
3182
|
204: void;
|
|
3182
3183
|
};
|