operand-meta-sdk 1.2.1

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.
Files changed (113) hide show
  1. package/.eslintrc.js +25 -0
  2. package/.prettierrc +4 -0
  3. package/README.md +435 -0
  4. package/dist/jest.config.d.ts +3 -0
  5. package/dist/jest.config.js +14 -0
  6. package/dist/jest.config.js.map +1 -0
  7. package/dist/src/__test__/mocks/index.d.ts +2 -0
  8. package/dist/src/__test__/mocks/index.js +6 -0
  9. package/dist/src/__test__/mocks/index.js.map +1 -0
  10. package/dist/src/error/operand-error.d.ts +8 -0
  11. package/dist/src/error/operand-error.js +196 -0
  12. package/dist/src/error/operand-error.js.map +1 -0
  13. package/dist/src/index.d.ts +10 -0
  14. package/dist/src/index.js +22 -0
  15. package/dist/src/index.js.map +1 -0
  16. package/dist/src/interfaces/ing-publish.d.ts +53 -0
  17. package/dist/src/interfaces/ing-publish.js +3 -0
  18. package/dist/src/interfaces/ing-publish.js.map +1 -0
  19. package/dist/src/interfaces/meta-auth.d.ts +14 -0
  20. package/dist/src/interfaces/meta-auth.js +3 -0
  21. package/dist/src/interfaces/meta-auth.js.map +1 -0
  22. package/dist/src/interfaces/meta-mkt.d.ts +4 -0
  23. package/dist/src/interfaces/meta-mkt.js +3 -0
  24. package/dist/src/interfaces/meta-mkt.js.map +1 -0
  25. package/dist/src/interfaces/meta-response.d.ts +285 -0
  26. package/dist/src/interfaces/meta-response.js +3 -0
  27. package/dist/src/interfaces/meta-response.js.map +1 -0
  28. package/dist/src/interfaces/meta.d.ts +6 -0
  29. package/dist/src/interfaces/meta.js +3 -0
  30. package/dist/src/interfaces/meta.js.map +1 -0
  31. package/dist/src/interfaces/page-publish.d.ts +66 -0
  32. package/dist/src/interfaces/page-publish.js +3 -0
  33. package/dist/src/interfaces/page-publish.js.map +1 -0
  34. package/dist/src/modules/auth/meta-auth.d.ts +35 -0
  35. package/dist/src/modules/auth/meta-auth.js +131 -0
  36. package/dist/src/modules/auth/meta-auth.js.map +1 -0
  37. package/dist/src/modules/auth/meta-auth.spec.d.ts +1 -0
  38. package/dist/src/modules/auth/meta-auth.spec.js +76 -0
  39. package/dist/src/modules/auth/meta-auth.spec.js.map +1 -0
  40. package/dist/src/modules/comments/ing-comments.d.ts +7 -0
  41. package/dist/src/modules/comments/ing-comments.js +27 -0
  42. package/dist/src/modules/comments/ing-comments.js.map +1 -0
  43. package/dist/src/modules/comments/page-comments.d.ts +6 -0
  44. package/dist/src/modules/comments/page-comments.js +18 -0
  45. package/dist/src/modules/comments/page-comments.js.map +1 -0
  46. package/dist/src/modules/insights/ing-insights.d.ts +42 -0
  47. package/dist/src/modules/insights/ing-insights.js +150 -0
  48. package/dist/src/modules/insights/ing-insights.js.map +1 -0
  49. package/dist/src/modules/insights/mkt-insights.d.ts +10 -0
  50. package/dist/src/modules/insights/mkt-insights.js +46 -0
  51. package/dist/src/modules/insights/mkt-insights.js.map +1 -0
  52. package/dist/src/modules/insights/page-insights.d.ts +34 -0
  53. package/dist/src/modules/insights/page-insights.js +146 -0
  54. package/dist/src/modules/insights/page-insights.js.map +1 -0
  55. package/dist/src/modules/meta-ing.d.ts +5 -0
  56. package/dist/src/modules/meta-ing.js +11 -0
  57. package/dist/src/modules/meta-ing.js.map +1 -0
  58. package/dist/src/modules/meta-mkt.d.ts +5 -0
  59. package/dist/src/modules/meta-mkt.js +11 -0
  60. package/dist/src/modules/meta-mkt.js.map +1 -0
  61. package/dist/src/modules/meta-page.d.ts +5 -0
  62. package/dist/src/modules/meta-page.js +11 -0
  63. package/dist/src/modules/meta-page.js.map +1 -0
  64. package/dist/src/modules/meta.d.ts +10 -0
  65. package/dist/src/modules/meta.js +23 -0
  66. package/dist/src/modules/meta.js.map +1 -0
  67. package/dist/src/modules/publish/ing-publish.d.ts +39 -0
  68. package/dist/src/modules/publish/ing-publish.js +464 -0
  69. package/dist/src/modules/publish/ing-publish.js.map +1 -0
  70. package/dist/src/modules/publish/page-publish.d.ts +51 -0
  71. package/dist/src/modules/publish/page-publish.js +560 -0
  72. package/dist/src/modules/publish/page-publish.js.map +1 -0
  73. package/dist/src/modules/publish/page-publish.spec.d.ts +1 -0
  74. package/dist/src/modules/publish/page-publish.spec.js +280 -0
  75. package/dist/src/modules/publish/page-publish.spec.js.map +1 -0
  76. package/dist/src/modules/utils/meta-utils.d.ts +8 -0
  77. package/dist/src/modules/utils/meta-utils.js +28 -0
  78. package/dist/src/modules/utils/meta-utils.js.map +1 -0
  79. package/dist/src/utils/api.d.ts +8 -0
  80. package/dist/src/utils/api.js +36 -0
  81. package/dist/src/utils/api.js.map +1 -0
  82. package/dist/tsconfig.tsbuildinfo +1 -0
  83. package/jest.config.ts +198 -0
  84. package/package.json +39 -0
  85. package/src/__test__/mocks/image.jpeg +0 -0
  86. package/src/__test__/mocks/index.ts +5 -0
  87. package/src/__test__/mocks/video-to-post.mp4 +0 -0
  88. package/src/__test__/mocks/video-to-stories.mp4 +0 -0
  89. package/src/error/operand-error.ts +217 -0
  90. package/src/index.ts +21 -0
  91. package/src/interfaces/ing-publish.ts +58 -0
  92. package/src/interfaces/meta-auth.ts +52 -0
  93. package/src/interfaces/meta-mkt.ts +5 -0
  94. package/src/interfaces/meta-response.ts +319 -0
  95. package/src/interfaces/meta.ts +7 -0
  96. package/src/interfaces/page-publish.ts +72 -0
  97. package/src/modules/auth/meta-auth.spec.ts +93 -0
  98. package/src/modules/auth/meta-auth.ts +227 -0
  99. package/src/modules/comments/ing-comments.ts +38 -0
  100. package/src/modules/comments/page-comments.ts +20 -0
  101. package/src/modules/insights/ing-insights.ts +275 -0
  102. package/src/modules/insights/mkt-insights.ts +68 -0
  103. package/src/modules/insights/page-insights.ts +267 -0
  104. package/src/modules/meta-ing.ts +8 -0
  105. package/src/modules/meta-mkt.ts +8 -0
  106. package/src/modules/meta-page.ts +8 -0
  107. package/src/modules/meta.ts +31 -0
  108. package/src/modules/publish/ing-publish.ts +754 -0
  109. package/src/modules/publish/page-publish.spec.ts +386 -0
  110. package/src/modules/publish/page-publish.ts +881 -0
  111. package/src/modules/utils/meta-utils.ts +37 -0
  112. package/src/utils/api.ts +45 -0
  113. package/tsconfig.json +22 -0
package/.eslintrc.js ADDED
@@ -0,0 +1,25 @@
1
+ module.exports = {
2
+ parser: '@typescript-eslint/parser',
3
+ parserOptions: {
4
+ project: 'tsconfig.json',
5
+ tsconfigRootDir: __dirname,
6
+ sourceType: 'module',
7
+ },
8
+ plugins: ['@typescript-eslint/eslint-plugin'],
9
+ extends: [
10
+ 'plugin:@typescript-eslint/recommended',
11
+ 'plugin:prettier/recommended',
12
+ ],
13
+ root: true,
14
+ env: {
15
+ node: true,
16
+ jest: true,
17
+ },
18
+ ignorePatterns: ['.eslintrc.js'],
19
+ rules: {
20
+ '@typescript-eslint/interface-name-prefix': 'off',
21
+ '@typescript-eslint/explicit-function-return-type': 'off',
22
+ '@typescript-eslint/explicit-module-boundary-types': 'off',
23
+ '@typescript-eslint/no-explicit-any': 'off',
24
+ },
25
+ };
package/.prettierrc ADDED
@@ -0,0 +1,4 @@
1
+ {
2
+ "singleQuote": false,
3
+ "trailingComma": "all"
4
+ }
package/README.md ADDED
@@ -0,0 +1,435 @@
1
+ # Welcome to the best SDK for communicating with api's meta
2
+
3
+ ## Get Started
4
+
5
+ ### First, install lib:
6
+ ```sh
7
+ npm install operand-facebook-sdk@latest
8
+ ```
9
+ ### Next, import with ES6 or CommonJS:
10
+
11
+ - ES6
12
+ ```javascript
13
+ import { MetaPage } from 'operand-facebook-sdk';
14
+
15
+ (async () => {
16
+ const page = new MetaPage({
17
+ apiVersion: 'v21.0',
18
+ pageId: 'your-page-id',
19
+ pageAccessToken: 'your-page-access-token',
20
+ })
21
+
22
+ const pageData = await page.getAllPosts()
23
+
24
+ console.log({ pageData });
25
+ })()
26
+ ```
27
+ - CommonJS
28
+ ```javascript
29
+ const OPSDK = require("operand-facebook-sdk");
30
+
31
+ (async () => {
32
+ const page = new OPSDK.MetaPage({
33
+ apiVersion: 'v21.0',
34
+ pageId: 'your-page-id',
35
+ pageAccessToken: 'your-page-access-token',
36
+ })
37
+
38
+ const pageData = await page.getAllPosts()
39
+
40
+ console.log({ pageData });
41
+ })()
42
+ ```
43
+
44
+ ## Documentation
45
+
46
+ ### Classes
47
+
48
+ #### `MetaAuth`
49
+
50
+ Provides authentication for generating access tokens for the Meta API.
51
+
52
+ #### Methods
53
+
54
+ - `createAccessToken(options: CreateMetaAuth): Promise<string>`
55
+ - **Description**: Generates an access token for accessing Meta API resources.
56
+ - **Parameters**:
57
+ - `client_id`: The application’s client ID.
58
+ - `client_secret`: The application’s client secret.
59
+ - `redirect_uri`: Redirect URI after the user grants permissions.
60
+ - `apiVersion`: API version to use.
61
+ - `code`: The authorization code from the OAuth process.
62
+ - **Returns**: A `Promise` that resolves with the access token as a `string`.
63
+
64
+ ---
65
+
66
+ #### `MetaPage`
67
+
68
+ Handles operations for managing Meta pages, including posting, updating, and deleting posts, as well as creating stories.
69
+
70
+ ##### Constructor
71
+
72
+ - **Parameters**:
73
+ - `pageAccessToken`: Access token for the page.
74
+ - `pageId`: ID of the page to manage.
75
+ - `apiVersion`: Version of the API to use.
76
+
77
+ ##### Methods
78
+
79
+ - `getAccounts(options: GetAccounts): Promise<any>`
80
+ - **Description**: Retrieves accounts associated with the page.
81
+ - **Parameters**:
82
+ - `fields`: Array of fields to include in the response.
83
+ - **Returns**: An `Array` of account objects.
84
+
85
+ - `getAllPosts(): Promise<PagePost[]>`
86
+ - **Description**: Fetches all posts on the page.
87
+ - **Returns**: A list of `PagePost` objects.
88
+
89
+ - `getPostUrlById(postId: string): string`
90
+ - **Description**: Generates a URL for a post by its ID.
91
+ - **Parameters**:
92
+ - `postId`: ID of the post.
93
+ - **Returns**: The URL of the post.
94
+
95
+ - `createPost(post: CreatePost): Promise<string>`
96
+ - **Description**: Creates a post on the page, either text, photo, or video.
97
+ - **Parameters**:
98
+ - `post`: Post configuration object, including message, publication time, and media type.
99
+ - **Returns**: The ID of the created post.
100
+
101
+ - `updatePost(postId: string, message: string): Promise<boolean>`
102
+ - **Description**: Updates the content of a post.
103
+ - **Parameters**:
104
+ - `postId`: ID of the post to update.
105
+ - `message`: New content for the post.
106
+ - **Returns**: Boolean indicating success.
107
+
108
+ - `deletePost(postId: string): Promise<boolean>`
109
+ - **Description**: Deletes a post by ID.
110
+ - **Parameters**:
111
+ - `postId`: ID of the post to delete.
112
+ - **Returns**: Boolean indicating success.
113
+
114
+ - `createStories(story: CreateStories): Promise<string>`
115
+ - **Description**: Creates a story for the page, either photo or video.
116
+ - **Parameters**:
117
+ - `story`: Story configuration including media type and source.
118
+ - **Returns**: The ID of the created story.
119
+ - `createReels(reel: CreateReels): Promise<string>`
120
+ - **Description**: Creates a reels for the page, only video.
121
+ - **Parameters**:
122
+ - `reel`: Reel configuration including media mediaSource to video.
123
+ - **Returns**: The ID of the created reel.
124
+
125
+ ##### Private Methods
126
+
127
+ - `fileTypesPermitted(file: "video" | "photo", type: string): boolean`
128
+ - **Description**: Checks if the file type is permitted.
129
+
130
+ - `verifyPhotoSize(value: string | Buffer, isBuffer: boolean): Promise<boolean>`
131
+ - **Description**: Checks if the photo size is within allowed limits.
132
+
133
+ - `validatePublishDate(datePublish: Date): boolean`
134
+ - **Description**: Validates that the publish date is within 10 minutes to 6 months from now.
135
+
136
+ - `savePhotoInMetaStorageByUrl(url: string): Promise<string>`
137
+ - **Description**: Saves a photo in Meta’s storage using a URL.
138
+
139
+ - `savePhotoInMetaStorageByPath(path: string): Promise<string>`
140
+ - **Description**: Saves a photo in Meta’s storage using a file path.
141
+
142
+ - `saveVideoInMetaStorageMomentaryByUrl(video: string): Promise<string>`
143
+ - **Description**: Saves a video momentarily in Meta’s storage by URL.
144
+
145
+ - `uploadPhotos(photos: Array<{ source: string; value: string }>): Promise<string[]>`
146
+ - **Description**: Uploads multiple photos to Meta’s storage.
147
+
148
+ - `createTextPost(message: string, publishNow: boolean, datePublish?: Date): Promise<string>`
149
+ - **Description**: Creates a text-only post on the page.
150
+
151
+ - `createMediaPost(message: string, mediaIds: string[], publishNow: boolean, datePublish?: Date): Promise<string>`
152
+ - **Description**: Creates a media post on the page with specified media IDs.
153
+
154
+ - `uploadVideo(video: { source: string; value: string }, message: string, publishNow: boolean, datePublish?: Date): Promise<string>`
155
+ - **Description**: Uploads a video to Meta’s storage, supporting both immediate and scheduled publishing.
156
+
157
+ - `createPhotoStory(story: CreateStories): Promise<string>`
158
+ - **Description**: Creates a photo story on the page.
159
+
160
+ - `createVideoStory(story: CreateStories): Promise<string>`
161
+ - **Description**: Creates a video story on the page.
162
+
163
+ ---
164
+
165
+ ### Interfaces
166
+
167
+ #### `Meta`
168
+
169
+ ```typescript
170
+ export interface PagePost {
171
+ created_time: string;
172
+ message: string;
173
+ id: string;
174
+ }
175
+
176
+ export interface PaginationCursors {
177
+ before: string;
178
+ after: string;
179
+ }
180
+
181
+ export interface PaginationInfo {
182
+ cursors: PaginationCursors;
183
+ }
184
+
185
+ export interface GetPagePostsResponse {
186
+ data: PagePost[];
187
+ paging: PaginationInfo;
188
+ }
189
+
190
+ export interface CreatePagePostResponse {
191
+ id: string;
192
+ post_id?: string;
193
+ }
194
+
195
+ export interface UpdatePagePostResponse {
196
+ success: boolean;
197
+ }
198
+
199
+ export interface DeletePagePostResponse {
200
+ success: boolean;
201
+ }
202
+
203
+ export interface SaveMediaStorageResponse {
204
+ id: string;
205
+ }
206
+
207
+ export interface CreatePhotoStoriesResponse {
208
+ success: boolean;
209
+ post_id: string;
210
+ }
211
+
212
+ export interface CreateAccessTokenResponse {
213
+ access_token: string;
214
+ token_type: string;
215
+ }
216
+
217
+ export interface GetPageAccountsResponse {
218
+ data: Array<{
219
+ id: string;
220
+ name?: string;
221
+ about?: string;
222
+ category?: string;
223
+ category_list?: Array<{ id: string; name: string }>;
224
+ location?: {
225
+ city?: string;
226
+ country?: string;
227
+ latitude?: number;
228
+ longitude?: number;
229
+ street?: string;
230
+ zip?: string;
231
+ };
232
+ fan_count?: number;
233
+ access_token?: string;
234
+ tasks?: string[];
235
+ picture?: {
236
+ data: {
237
+ url: string;
238
+ width?: number;
239
+ height?: number;
240
+ is_silhouette?: boolean;
241
+ };
242
+ };
243
+ cover?: {
244
+ id: string;
245
+ source: string;
246
+ offset_y?: number;
247
+ offset_x?: number;
248
+ };
249
+ photos?: {
250
+ data: Array<{
251
+ id: string;
252
+ name?: string;
253
+ created_time?: string;
254
+ picture?: string;
255
+ }>;
256
+ };
257
+ videos?: {
258
+ data: Array<{
259
+ id: string;
260
+ title?: string;
261
+ description?: string;
262
+ picture?: string;
263
+ source?: string;
264
+ }>;
265
+ };
266
+ engagement?: {
267
+ count?: number;
268
+ social_sentence?: string;
269
+ };
270
+ is_published?: boolean;
271
+ is_verified?: boolean;
272
+ verification_status?: string;
273
+ website?: string;
274
+ emails?: string[];
275
+ phone?: string;
276
+ instagram_business_account?: { id: string };
277
+ hours?: {
278
+ monday?: string;
279
+ tuesday?: string;
280
+ wednesday?: string;
281
+ thursday?: string;
282
+ friday?: string;
283
+ saturday?: string;
284
+ sunday?: string;
285
+ };
286
+ created_time?: string;
287
+ bio?: string;
288
+ link?: string;
289
+ business?: {
290
+ id: string;
291
+ name: string;
292
+ };
293
+ }>;
294
+ }
295
+
296
+ export interface CreateStartVideoUploadResponse {
297
+ video_id: string;
298
+ upload_url: string;
299
+ }
300
+
301
+ export interface CreateLoadingVideoUploadResponse {
302
+ success: boolean;
303
+ }
304
+
305
+ export interface CreateFinishVideoUploadResponse {
306
+ success: boolean;
307
+ message: string;
308
+ post_id: string;
309
+ }
310
+
311
+ ```
312
+
313
+ #### `Main`
314
+
315
+ ```typescript
316
+ import { ApiVersion } from "./meta-auth";
317
+ import { PagePost } from "./meta-response";
318
+
319
+ export type ConstructorMain = {
320
+ pageId: string;
321
+ pageAccessToken: string;
322
+ apiVersion: ApiVersion;
323
+ };
324
+
325
+ type PhotoMediaItem = {
326
+ source: "url" | "path";
327
+ value: string;
328
+ };
329
+
330
+ type VideoMediaItem = {
331
+ source: "url" | "path";
332
+ value: string;
333
+ };
334
+
335
+ export type CreatePost = {
336
+ mediaType?: "photo" | "video";
337
+ message?: string;
338
+ publishNow: boolean;
339
+ datePublish?: Date;
340
+ photos?: PhotoMediaItem[];
341
+ video?: VideoMediaItem;
342
+ };
343
+
344
+ type CreateStoriesPath = {
345
+ mediaSource: "local";
346
+ mediaType: "photo" | "video";
347
+ path: string;
348
+ };
349
+
350
+ type CreateStoriesUrl = {
351
+ mediaSource: "url";
352
+ mediaType: "photo" | "video";
353
+ url: string;
354
+ };
355
+
356
+ export type CreateStories = CreateStoriesPath | CreateStoriesUrl;
357
+
358
+ type CreateReelsPath = {
359
+ mediaSource: "local";
360
+ path: string;
361
+ title?: string;
362
+ description?: string;
363
+ };
364
+
365
+ type CreateReelsUrl = {
366
+ mediaSource: "url";
367
+ url: string;
368
+ title?: string;
369
+ description?: string;
370
+ };
371
+
372
+ export type CreateReels = CreateReelsPath | CreateReelsUrl;
373
+
374
+ export interface IMetaPage {
375
+ getAllPosts(): Promise<PagePost[]>;
376
+ getPostUrlById(postId: string): string;
377
+ createPost(data: CreatePost): Promise<string>;
378
+ updatePost(postId: string, message: string): Promise<boolean>;
379
+ deletePost(postId: string): Promise<boolean>;
380
+ createStories(data: CreateStories): Promise<string>;
381
+ }
382
+
383
+ ```
384
+
385
+ #### `Auth`
386
+
387
+ ```typescript
388
+ export type ApiVersion = "v17.0" | "v18.0" | "v19.0" | "v20.0" | "v21.0";
389
+
390
+ export type CreateMetaAuth = {
391
+ client_id: string;
392
+ client_secret: string;
393
+ redirect_uri?: string;
394
+ apiVersion: ApiVersion;
395
+ code: string;
396
+ };
397
+
398
+ export type FieldsPage = Array<
399
+ | "id"
400
+ | "name"
401
+ | "about"
402
+ | "category"
403
+ | "category_list"
404
+ | "location"
405
+ | "fan_count"
406
+ | "access_token"
407
+ | "tasks"
408
+ | "picture"
409
+ | "cover"
410
+ | "photos"
411
+ | "videos"
412
+ | "engagement"
413
+ | "is_published"
414
+ | "is_verified"
415
+ | "verification_status"
416
+ | "website"
417
+ | "emails"
418
+ | "phone"
419
+ | "instagram_business_account"
420
+ | "hours"
421
+ | "created_time"
422
+ | "bio"
423
+ | "link"
424
+ | "business"
425
+ | string
426
+ >;
427
+
428
+ export type GetAccounts = {
429
+ fields: FieldsPage;
430
+ accessToken: string;
431
+ };
432
+
433
+ ```
434
+
435
+
@@ -0,0 +1,3 @@
1
+ import type { Config } from "jest";
2
+ declare const config: Config;
3
+ export default config;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const config = {
4
+ clearMocks: true,
5
+ collectCoverage: true,
6
+ coverageDirectory: "coverage",
7
+ coverageProvider: "v8",
8
+ testMatch: ["**/?(*.)+(spec).ts"],
9
+ transform: {
10
+ "^.+\\.(t|j)sx?$": "@swc/jest",
11
+ },
12
+ };
13
+ exports.default = config;
14
+ //# sourceMappingURL=jest.config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jest.config.js","sourceRoot":"","sources":["../jest.config.ts"],"names":[],"mappings":";;AAOA,MAAM,MAAM,GAAW;IAWrB,UAAU,EAAE,IAAI;IAGhB,eAAe,EAAE,IAAI;IAMrB,iBAAiB,EAAE,UAAU;IAQ7B,gBAAgB,EAAE,IAAI;IA0HtB,SAAS,EAAE,CAAC,oBAAoB,CAAC;IAiBjC,SAAS,EAAE;QACT,iBAAiB,EAAE,WAAW;KAC/B;CAmBF,CAAC;AAEF,kBAAe,MAAM,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const PHOTO_URL_MOCK = "https://svs.gsfc.nasa.gov/vis/a030000/a030000/a030028/frames/6750x3375_2x1_30p/split-750m/dnb_land_ocean_ice.2012.13500x13500.A1-0001.png";
2
+ export declare const VIDEO_URL_MOCK = "https://sample-videos.com/video321/mp4/720/big_buck_bunny_720p_1mb.mp4";
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VIDEO_URL_MOCK = exports.PHOTO_URL_MOCK = void 0;
4
+ exports.PHOTO_URL_MOCK = "https://svs.gsfc.nasa.gov/vis/a030000/a030000/a030028/frames/6750x3375_2x1_30p/split-750m/dnb_land_ocean_ice.2012.13500x13500.A1-0001.png";
5
+ exports.VIDEO_URL_MOCK = "https://sample-videos.com/video321/mp4/720/big_buck_bunny_720p_1mb.mp4";
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/__test__/mocks/index.ts"],"names":[],"mappings":";;;AAAa,QAAA,cAAc,GACzB,2IAA2I,CAAC;AAEjI,QAAA,cAAc,GACzB,wEAAwE,CAAC"}
@@ -0,0 +1,8 @@
1
+ export declare class OperandError {
2
+ private message_private;
3
+ private code_private;
4
+ parseMetaError(...data: any): void;
5
+ constructor(...data: any);
6
+ get message(): string;
7
+ get code(): number;
8
+ }