@ibiliaze/global-vars 1.137.0 → 1.138.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.
|
@@ -3,24 +3,72 @@ export declare const blogRoleDefs: readonly [{
|
|
|
3
3
|
readonly path: "/blog";
|
|
4
4
|
readonly role: "postBlog";
|
|
5
5
|
readonly name: "Create blog";
|
|
6
|
+
readonly response_201: {
|
|
7
|
+
blog: any;
|
|
8
|
+
message: string;
|
|
9
|
+
};
|
|
10
|
+
readonly response_500: {
|
|
11
|
+
message: string;
|
|
12
|
+
error: string;
|
|
13
|
+
};
|
|
6
14
|
}, {
|
|
7
15
|
readonly method: "get";
|
|
8
16
|
readonly path: "/blog";
|
|
9
17
|
readonly role: "getBlogs";
|
|
10
18
|
readonly name: "Get blogs";
|
|
19
|
+
readonly response_200: {
|
|
20
|
+
blogs: any[];
|
|
21
|
+
count: number;
|
|
22
|
+
};
|
|
23
|
+
readonly response_500: {
|
|
24
|
+
message: string;
|
|
25
|
+
error: string;
|
|
26
|
+
};
|
|
11
27
|
}, {
|
|
12
28
|
readonly method: "get";
|
|
13
29
|
readonly path: "/blog/:id";
|
|
14
30
|
readonly role: "getBlogById";
|
|
15
31
|
readonly name: "Get blog";
|
|
32
|
+
readonly response_200: {
|
|
33
|
+
blog: any | null;
|
|
34
|
+
message: string;
|
|
35
|
+
};
|
|
36
|
+
readonly response_404: {
|
|
37
|
+
message: string;
|
|
38
|
+
error: string;
|
|
39
|
+
};
|
|
16
40
|
}, {
|
|
17
41
|
readonly method: "put";
|
|
18
42
|
readonly path: "/blog/:id";
|
|
19
43
|
readonly role: "putBlogById";
|
|
20
44
|
readonly name: "Update blog";
|
|
45
|
+
readonly response_200: {
|
|
46
|
+
blog: any;
|
|
47
|
+
message: string;
|
|
48
|
+
};
|
|
49
|
+
readonly response_404: {
|
|
50
|
+
blog: any | null;
|
|
51
|
+
message: string;
|
|
52
|
+
};
|
|
53
|
+
readonly response_500: {
|
|
54
|
+
message: string;
|
|
55
|
+
error: string;
|
|
56
|
+
};
|
|
21
57
|
}, {
|
|
22
58
|
readonly method: "delete";
|
|
23
59
|
readonly path: "/blog/:id";
|
|
24
60
|
readonly role: "deleteBlogById";
|
|
25
61
|
readonly name: "Delete blog";
|
|
62
|
+
readonly response_200: {
|
|
63
|
+
blog: any;
|
|
64
|
+
message: string;
|
|
65
|
+
};
|
|
66
|
+
readonly response_404: {
|
|
67
|
+
blog: any | null;
|
|
68
|
+
message: string;
|
|
69
|
+
};
|
|
70
|
+
readonly response_500: {
|
|
71
|
+
message: string;
|
|
72
|
+
error: string;
|
|
73
|
+
};
|
|
26
74
|
}];
|
|
@@ -2,9 +2,51 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.blogRoleDefs = void 0;
|
|
4
4
|
exports.blogRoleDefs = [
|
|
5
|
-
|
|
6
|
-
{
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
// POST /blog – create
|
|
6
|
+
{
|
|
7
|
+
method: 'post',
|
|
8
|
+
path: '/blog',
|
|
9
|
+
role: 'postBlog',
|
|
10
|
+
name: 'Create blog',
|
|
11
|
+
response_201: {},
|
|
12
|
+
response_500: {},
|
|
13
|
+
},
|
|
14
|
+
// GET /blog – list
|
|
15
|
+
{
|
|
16
|
+
method: 'get',
|
|
17
|
+
path: '/blog',
|
|
18
|
+
role: 'getBlogs',
|
|
19
|
+
name: 'Get blogs',
|
|
20
|
+
response_200: {},
|
|
21
|
+
response_500: {},
|
|
22
|
+
},
|
|
23
|
+
// GET /blog/:id – get one
|
|
24
|
+
{
|
|
25
|
+
method: 'get',
|
|
26
|
+
path: '/blog/:id',
|
|
27
|
+
role: 'getBlogById',
|
|
28
|
+
name: 'Get blog',
|
|
29
|
+
response_200: {},
|
|
30
|
+
response_404: {},
|
|
31
|
+
},
|
|
32
|
+
// PUT /blog/:id – update
|
|
33
|
+
{
|
|
34
|
+
method: 'put',
|
|
35
|
+
path: '/blog/:id',
|
|
36
|
+
role: 'putBlogById',
|
|
37
|
+
name: 'Update blog',
|
|
38
|
+
response_200: {},
|
|
39
|
+
response_404: {},
|
|
40
|
+
response_500: {},
|
|
41
|
+
},
|
|
42
|
+
// DELETE /blog/:id – delete
|
|
43
|
+
{
|
|
44
|
+
method: 'delete',
|
|
45
|
+
path: '/blog/:id',
|
|
46
|
+
role: 'deleteBlogById',
|
|
47
|
+
name: 'Delete blog',
|
|
48
|
+
response_200: {},
|
|
49
|
+
response_404: {},
|
|
50
|
+
response_500: {},
|
|
51
|
+
},
|
|
10
52
|
];
|
|
@@ -3,39 +3,125 @@ export declare const campaignRoleDefs: readonly [{
|
|
|
3
3
|
readonly path: "/campaign";
|
|
4
4
|
readonly role: "postCampaign";
|
|
5
5
|
readonly name: "Create campaign";
|
|
6
|
+
readonly response_201: {
|
|
7
|
+
campaign: any;
|
|
8
|
+
message: string;
|
|
9
|
+
};
|
|
10
|
+
readonly response_500: {
|
|
11
|
+
message: string;
|
|
12
|
+
error: string;
|
|
13
|
+
};
|
|
6
14
|
}, {
|
|
7
15
|
readonly method: "post";
|
|
8
16
|
readonly path: "/campaign/start/:id";
|
|
9
17
|
readonly role: "postCampaignStartById";
|
|
10
18
|
readonly name: "Start campaign by ID";
|
|
19
|
+
readonly response_200: {
|
|
20
|
+
campaign: any;
|
|
21
|
+
message: string;
|
|
22
|
+
};
|
|
23
|
+
readonly response_400: {
|
|
24
|
+
message: string;
|
|
25
|
+
};
|
|
26
|
+
readonly response_401: {
|
|
27
|
+
message: string;
|
|
28
|
+
};
|
|
29
|
+
readonly response_404: {
|
|
30
|
+
message: string;
|
|
31
|
+
};
|
|
32
|
+
readonly response_500: {
|
|
33
|
+
message: string;
|
|
34
|
+
error: string;
|
|
35
|
+
};
|
|
11
36
|
}, {
|
|
12
37
|
readonly method: "post";
|
|
13
38
|
readonly path: "/campaign/stop/:id";
|
|
14
39
|
readonly role: "postCampaignStopById";
|
|
15
40
|
readonly name: "Stop campaign by ID";
|
|
41
|
+
readonly response_200: {
|
|
42
|
+
campaign: any;
|
|
43
|
+
message: string;
|
|
44
|
+
};
|
|
45
|
+
readonly response_404: {
|
|
46
|
+
message: string;
|
|
47
|
+
};
|
|
48
|
+
readonly response_500: {
|
|
49
|
+
message: string;
|
|
50
|
+
error: string;
|
|
51
|
+
};
|
|
16
52
|
}, {
|
|
17
53
|
readonly method: "get";
|
|
18
54
|
readonly path: "/campaign";
|
|
19
55
|
readonly role: "getCampaigns";
|
|
20
56
|
readonly name: "Get campaigns";
|
|
57
|
+
readonly response_200: {
|
|
58
|
+
campaigns: any[];
|
|
59
|
+
count: number;
|
|
60
|
+
};
|
|
61
|
+
readonly response_500: {
|
|
62
|
+
message: string;
|
|
63
|
+
error: string;
|
|
64
|
+
};
|
|
21
65
|
}, {
|
|
22
66
|
readonly method: "get";
|
|
23
67
|
readonly path: "/campaign/insight/:id";
|
|
24
68
|
readonly role: "getCampaignInsightById";
|
|
25
69
|
readonly name: "Get campaign insight";
|
|
70
|
+
readonly response_200: {
|
|
71
|
+
stages: any[];
|
|
72
|
+
};
|
|
73
|
+
readonly response_400: {
|
|
74
|
+
message: string;
|
|
75
|
+
};
|
|
76
|
+
readonly response_500: {
|
|
77
|
+
message: string;
|
|
78
|
+
error?: string;
|
|
79
|
+
};
|
|
26
80
|
}, {
|
|
27
81
|
readonly method: "get";
|
|
28
82
|
readonly path: "/campaign/:id";
|
|
29
83
|
readonly role: "getCampaignById";
|
|
30
84
|
readonly name: "Get campaign";
|
|
85
|
+
readonly response_200: {
|
|
86
|
+
campaign: any | null;
|
|
87
|
+
message: string;
|
|
88
|
+
};
|
|
89
|
+
readonly response_404: {
|
|
90
|
+
message: string;
|
|
91
|
+
error: string;
|
|
92
|
+
};
|
|
31
93
|
}, {
|
|
32
94
|
readonly method: "put";
|
|
33
95
|
readonly path: "/campaign/:id";
|
|
34
96
|
readonly role: "putCampaignById";
|
|
35
97
|
readonly name: "Update campaign";
|
|
98
|
+
readonly response_200: {
|
|
99
|
+
campaign: any;
|
|
100
|
+
message: string;
|
|
101
|
+
};
|
|
102
|
+
readonly response_404: {
|
|
103
|
+
campaign: any | null;
|
|
104
|
+
message: string;
|
|
105
|
+
};
|
|
106
|
+
readonly response_500: {
|
|
107
|
+
message: string;
|
|
108
|
+
error: string;
|
|
109
|
+
};
|
|
36
110
|
}, {
|
|
37
111
|
readonly method: "delete";
|
|
38
112
|
readonly path: "/campaign/:id";
|
|
39
113
|
readonly role: "deleteCampaignById";
|
|
40
114
|
readonly name: "Delete campaign";
|
|
115
|
+
readonly response_200: {
|
|
116
|
+
campaign: any;
|
|
117
|
+
message: string;
|
|
118
|
+
};
|
|
119
|
+
readonly response_404: {
|
|
120
|
+
campaign: any | null;
|
|
121
|
+
message: string;
|
|
122
|
+
};
|
|
123
|
+
readonly response_500: {
|
|
124
|
+
message: string;
|
|
125
|
+
error: string;
|
|
126
|
+
};
|
|
41
127
|
}];
|
|
@@ -2,12 +2,83 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.campaignRoleDefs = void 0;
|
|
4
4
|
exports.campaignRoleDefs = [
|
|
5
|
-
|
|
6
|
-
{
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
5
|
+
// POST /campaign – create
|
|
6
|
+
{
|
|
7
|
+
method: 'post',
|
|
8
|
+
path: '/campaign',
|
|
9
|
+
role: 'postCampaign',
|
|
10
|
+
name: 'Create campaign',
|
|
11
|
+
response_201: {},
|
|
12
|
+
response_500: {},
|
|
13
|
+
},
|
|
14
|
+
// POST /campaign/start/:id – start & schedule
|
|
15
|
+
{
|
|
16
|
+
method: 'post',
|
|
17
|
+
path: '/campaign/start/:id',
|
|
18
|
+
role: 'postCampaignStartById',
|
|
19
|
+
name: 'Start campaign by ID',
|
|
20
|
+
response_200: {},
|
|
21
|
+
response_400: {}, // invalid stage/time/type/schedule error
|
|
22
|
+
response_401: {}, // active limit exceeded
|
|
23
|
+
response_404: {}, // not found
|
|
24
|
+
response_500: {},
|
|
25
|
+
},
|
|
26
|
+
// POST /campaign/stop/:id – stop
|
|
27
|
+
{
|
|
28
|
+
method: 'post',
|
|
29
|
+
path: '/campaign/stop/:id',
|
|
30
|
+
role: 'postCampaignStopById',
|
|
31
|
+
name: 'Stop campaign by ID',
|
|
32
|
+
response_200: {},
|
|
33
|
+
response_404: {}, // not found
|
|
34
|
+
response_500: {},
|
|
35
|
+
},
|
|
36
|
+
// GET /campaign – list
|
|
37
|
+
{
|
|
38
|
+
method: 'get',
|
|
39
|
+
path: '/campaign',
|
|
40
|
+
role: 'getCampaigns',
|
|
41
|
+
name: 'Get campaigns',
|
|
42
|
+
response_200: {},
|
|
43
|
+
response_500: {},
|
|
44
|
+
},
|
|
45
|
+
// GET /campaign/insight/:id – insights
|
|
46
|
+
{
|
|
47
|
+
method: 'get',
|
|
48
|
+
path: '/campaign/insight/:id',
|
|
49
|
+
role: 'getCampaignInsightById',
|
|
50
|
+
name: 'Get campaign insight',
|
|
51
|
+
response_200: {},
|
|
52
|
+
response_400: {}, // "Campaign not found"
|
|
53
|
+
response_500: {}, // from insights or catch
|
|
54
|
+
},
|
|
55
|
+
// GET /campaign/:id – one
|
|
56
|
+
{
|
|
57
|
+
method: 'get',
|
|
58
|
+
path: '/campaign/:id',
|
|
59
|
+
role: 'getCampaignById',
|
|
60
|
+
name: 'Get campaign',
|
|
61
|
+
response_200: {},
|
|
62
|
+
response_404: {},
|
|
63
|
+
},
|
|
64
|
+
// PUT /campaign/:id – update
|
|
65
|
+
{
|
|
66
|
+
method: 'put',
|
|
67
|
+
path: '/campaign/:id',
|
|
68
|
+
role: 'putCampaignById',
|
|
69
|
+
name: 'Update campaign',
|
|
70
|
+
response_200: {},
|
|
71
|
+
response_404: {},
|
|
72
|
+
response_500: {},
|
|
73
|
+
},
|
|
74
|
+
// DELETE /campaign/:id – delete
|
|
75
|
+
{
|
|
76
|
+
method: 'delete',
|
|
77
|
+
path: '/campaign/:id',
|
|
78
|
+
role: 'deleteCampaignById',
|
|
79
|
+
name: 'Delete campaign',
|
|
80
|
+
response_200: {},
|
|
81
|
+
response_404: {},
|
|
82
|
+
response_500: {},
|
|
83
|
+
},
|
|
13
84
|
];
|
|
@@ -313,66 +313,200 @@ export declare const apis: <TId, TDate>() => readonly [{
|
|
|
313
313
|
readonly path: "/blog";
|
|
314
314
|
readonly role: "postBlog";
|
|
315
315
|
readonly name: "Create blog";
|
|
316
|
+
readonly response_201: {
|
|
317
|
+
blog: any;
|
|
318
|
+
message: string;
|
|
319
|
+
};
|
|
320
|
+
readonly response_500: {
|
|
321
|
+
message: string;
|
|
322
|
+
error: string;
|
|
323
|
+
};
|
|
316
324
|
}, {
|
|
317
325
|
readonly method: "get";
|
|
318
326
|
readonly path: "/blog";
|
|
319
327
|
readonly role: "getBlogs";
|
|
320
328
|
readonly name: "Get blogs";
|
|
329
|
+
readonly response_200: {
|
|
330
|
+
blogs: any[];
|
|
331
|
+
count: number;
|
|
332
|
+
};
|
|
333
|
+
readonly response_500: {
|
|
334
|
+
message: string;
|
|
335
|
+
error: string;
|
|
336
|
+
};
|
|
321
337
|
}, {
|
|
322
338
|
readonly method: "get";
|
|
323
339
|
readonly path: "/blog/:id";
|
|
324
340
|
readonly role: "getBlogById";
|
|
325
341
|
readonly name: "Get blog";
|
|
342
|
+
readonly response_200: {
|
|
343
|
+
blog: any | null;
|
|
344
|
+
message: string;
|
|
345
|
+
};
|
|
346
|
+
readonly response_404: {
|
|
347
|
+
message: string;
|
|
348
|
+
error: string;
|
|
349
|
+
};
|
|
326
350
|
}, {
|
|
327
351
|
readonly method: "put";
|
|
328
352
|
readonly path: "/blog/:id";
|
|
329
353
|
readonly role: "putBlogById";
|
|
330
354
|
readonly name: "Update blog";
|
|
355
|
+
readonly response_200: {
|
|
356
|
+
blog: any;
|
|
357
|
+
message: string;
|
|
358
|
+
};
|
|
359
|
+
readonly response_404: {
|
|
360
|
+
blog: any | null;
|
|
361
|
+
message: string;
|
|
362
|
+
};
|
|
363
|
+
readonly response_500: {
|
|
364
|
+
message: string;
|
|
365
|
+
error: string;
|
|
366
|
+
};
|
|
331
367
|
}, {
|
|
332
368
|
readonly method: "delete";
|
|
333
369
|
readonly path: "/blog/:id";
|
|
334
370
|
readonly role: "deleteBlogById";
|
|
335
371
|
readonly name: "Delete blog";
|
|
372
|
+
readonly response_200: {
|
|
373
|
+
blog: any;
|
|
374
|
+
message: string;
|
|
375
|
+
};
|
|
376
|
+
readonly response_404: {
|
|
377
|
+
blog: any | null;
|
|
378
|
+
message: string;
|
|
379
|
+
};
|
|
380
|
+
readonly response_500: {
|
|
381
|
+
message: string;
|
|
382
|
+
error: string;
|
|
383
|
+
};
|
|
336
384
|
}, {
|
|
337
385
|
readonly method: "post";
|
|
338
386
|
readonly path: "/campaign";
|
|
339
387
|
readonly role: "postCampaign";
|
|
340
388
|
readonly name: "Create campaign";
|
|
389
|
+
readonly response_201: {
|
|
390
|
+
campaign: any;
|
|
391
|
+
message: string;
|
|
392
|
+
};
|
|
393
|
+
readonly response_500: {
|
|
394
|
+
message: string;
|
|
395
|
+
error: string;
|
|
396
|
+
};
|
|
341
397
|
}, {
|
|
342
398
|
readonly method: "post";
|
|
343
399
|
readonly path: "/campaign/start/:id";
|
|
344
400
|
readonly role: "postCampaignStartById";
|
|
345
401
|
readonly name: "Start campaign by ID";
|
|
402
|
+
readonly response_200: {
|
|
403
|
+
campaign: any;
|
|
404
|
+
message: string;
|
|
405
|
+
};
|
|
406
|
+
readonly response_400: {
|
|
407
|
+
message: string;
|
|
408
|
+
};
|
|
409
|
+
readonly response_401: {
|
|
410
|
+
message: string;
|
|
411
|
+
};
|
|
412
|
+
readonly response_404: {
|
|
413
|
+
message: string;
|
|
414
|
+
};
|
|
415
|
+
readonly response_500: {
|
|
416
|
+
message: string;
|
|
417
|
+
error: string;
|
|
418
|
+
};
|
|
346
419
|
}, {
|
|
347
420
|
readonly method: "post";
|
|
348
421
|
readonly path: "/campaign/stop/:id";
|
|
349
422
|
readonly role: "postCampaignStopById";
|
|
350
423
|
readonly name: "Stop campaign by ID";
|
|
424
|
+
readonly response_200: {
|
|
425
|
+
campaign: any;
|
|
426
|
+
message: string;
|
|
427
|
+
};
|
|
428
|
+
readonly response_404: {
|
|
429
|
+
message: string;
|
|
430
|
+
};
|
|
431
|
+
readonly response_500: {
|
|
432
|
+
message: string;
|
|
433
|
+
error: string;
|
|
434
|
+
};
|
|
351
435
|
}, {
|
|
352
436
|
readonly method: "get";
|
|
353
437
|
readonly path: "/campaign";
|
|
354
438
|
readonly role: "getCampaigns";
|
|
355
439
|
readonly name: "Get campaigns";
|
|
440
|
+
readonly response_200: {
|
|
441
|
+
campaigns: any[];
|
|
442
|
+
count: number;
|
|
443
|
+
};
|
|
444
|
+
readonly response_500: {
|
|
445
|
+
message: string;
|
|
446
|
+
error: string;
|
|
447
|
+
};
|
|
356
448
|
}, {
|
|
357
449
|
readonly method: "get";
|
|
358
450
|
readonly path: "/campaign/insight/:id";
|
|
359
451
|
readonly role: "getCampaignInsightById";
|
|
360
452
|
readonly name: "Get campaign insight";
|
|
453
|
+
readonly response_200: {
|
|
454
|
+
stages: any[];
|
|
455
|
+
};
|
|
456
|
+
readonly response_400: {
|
|
457
|
+
message: string;
|
|
458
|
+
};
|
|
459
|
+
readonly response_500: {
|
|
460
|
+
message: string;
|
|
461
|
+
error?: string;
|
|
462
|
+
};
|
|
361
463
|
}, {
|
|
362
464
|
readonly method: "get";
|
|
363
465
|
readonly path: "/campaign/:id";
|
|
364
466
|
readonly role: "getCampaignById";
|
|
365
467
|
readonly name: "Get campaign";
|
|
468
|
+
readonly response_200: {
|
|
469
|
+
campaign: any | null;
|
|
470
|
+
message: string;
|
|
471
|
+
};
|
|
472
|
+
readonly response_404: {
|
|
473
|
+
message: string;
|
|
474
|
+
error: string;
|
|
475
|
+
};
|
|
366
476
|
}, {
|
|
367
477
|
readonly method: "put";
|
|
368
478
|
readonly path: "/campaign/:id";
|
|
369
479
|
readonly role: "putCampaignById";
|
|
370
480
|
readonly name: "Update campaign";
|
|
481
|
+
readonly response_200: {
|
|
482
|
+
campaign: any;
|
|
483
|
+
message: string;
|
|
484
|
+
};
|
|
485
|
+
readonly response_404: {
|
|
486
|
+
campaign: any | null;
|
|
487
|
+
message: string;
|
|
488
|
+
};
|
|
489
|
+
readonly response_500: {
|
|
490
|
+
message: string;
|
|
491
|
+
error: string;
|
|
492
|
+
};
|
|
371
493
|
}, {
|
|
372
494
|
readonly method: "delete";
|
|
373
495
|
readonly path: "/campaign/:id";
|
|
374
496
|
readonly role: "deleteCampaignById";
|
|
375
497
|
readonly name: "Delete campaign";
|
|
498
|
+
readonly response_200: {
|
|
499
|
+
campaign: any;
|
|
500
|
+
message: string;
|
|
501
|
+
};
|
|
502
|
+
readonly response_404: {
|
|
503
|
+
campaign: any | null;
|
|
504
|
+
message: string;
|
|
505
|
+
};
|
|
506
|
+
readonly response_500: {
|
|
507
|
+
message: string;
|
|
508
|
+
error: string;
|
|
509
|
+
};
|
|
376
510
|
}, {
|
|
377
511
|
readonly method: "post";
|
|
378
512
|
readonly path: "/category";
|
|
@@ -1438,66 +1572,200 @@ declare const allApis: readonly [{
|
|
|
1438
1572
|
readonly path: "/blog";
|
|
1439
1573
|
readonly role: "postBlog";
|
|
1440
1574
|
readonly name: "Create blog";
|
|
1575
|
+
readonly response_201: {
|
|
1576
|
+
blog: any;
|
|
1577
|
+
message: string;
|
|
1578
|
+
};
|
|
1579
|
+
readonly response_500: {
|
|
1580
|
+
message: string;
|
|
1581
|
+
error: string;
|
|
1582
|
+
};
|
|
1441
1583
|
}, {
|
|
1442
1584
|
readonly method: "get";
|
|
1443
1585
|
readonly path: "/blog";
|
|
1444
1586
|
readonly role: "getBlogs";
|
|
1445
1587
|
readonly name: "Get blogs";
|
|
1588
|
+
readonly response_200: {
|
|
1589
|
+
blogs: any[];
|
|
1590
|
+
count: number;
|
|
1591
|
+
};
|
|
1592
|
+
readonly response_500: {
|
|
1593
|
+
message: string;
|
|
1594
|
+
error: string;
|
|
1595
|
+
};
|
|
1446
1596
|
}, {
|
|
1447
1597
|
readonly method: "get";
|
|
1448
1598
|
readonly path: "/blog/:id";
|
|
1449
1599
|
readonly role: "getBlogById";
|
|
1450
1600
|
readonly name: "Get blog";
|
|
1601
|
+
readonly response_200: {
|
|
1602
|
+
blog: any | null;
|
|
1603
|
+
message: string;
|
|
1604
|
+
};
|
|
1605
|
+
readonly response_404: {
|
|
1606
|
+
message: string;
|
|
1607
|
+
error: string;
|
|
1608
|
+
};
|
|
1451
1609
|
}, {
|
|
1452
1610
|
readonly method: "put";
|
|
1453
1611
|
readonly path: "/blog/:id";
|
|
1454
1612
|
readonly role: "putBlogById";
|
|
1455
1613
|
readonly name: "Update blog";
|
|
1614
|
+
readonly response_200: {
|
|
1615
|
+
blog: any;
|
|
1616
|
+
message: string;
|
|
1617
|
+
};
|
|
1618
|
+
readonly response_404: {
|
|
1619
|
+
blog: any | null;
|
|
1620
|
+
message: string;
|
|
1621
|
+
};
|
|
1622
|
+
readonly response_500: {
|
|
1623
|
+
message: string;
|
|
1624
|
+
error: string;
|
|
1625
|
+
};
|
|
1456
1626
|
}, {
|
|
1457
1627
|
readonly method: "delete";
|
|
1458
1628
|
readonly path: "/blog/:id";
|
|
1459
1629
|
readonly role: "deleteBlogById";
|
|
1460
1630
|
readonly name: "Delete blog";
|
|
1631
|
+
readonly response_200: {
|
|
1632
|
+
blog: any;
|
|
1633
|
+
message: string;
|
|
1634
|
+
};
|
|
1635
|
+
readonly response_404: {
|
|
1636
|
+
blog: any | null;
|
|
1637
|
+
message: string;
|
|
1638
|
+
};
|
|
1639
|
+
readonly response_500: {
|
|
1640
|
+
message: string;
|
|
1641
|
+
error: string;
|
|
1642
|
+
};
|
|
1461
1643
|
}, {
|
|
1462
1644
|
readonly method: "post";
|
|
1463
1645
|
readonly path: "/campaign";
|
|
1464
1646
|
readonly role: "postCampaign";
|
|
1465
1647
|
readonly name: "Create campaign";
|
|
1648
|
+
readonly response_201: {
|
|
1649
|
+
campaign: any;
|
|
1650
|
+
message: string;
|
|
1651
|
+
};
|
|
1652
|
+
readonly response_500: {
|
|
1653
|
+
message: string;
|
|
1654
|
+
error: string;
|
|
1655
|
+
};
|
|
1466
1656
|
}, {
|
|
1467
1657
|
readonly method: "post";
|
|
1468
1658
|
readonly path: "/campaign/start/:id";
|
|
1469
1659
|
readonly role: "postCampaignStartById";
|
|
1470
1660
|
readonly name: "Start campaign by ID";
|
|
1661
|
+
readonly response_200: {
|
|
1662
|
+
campaign: any;
|
|
1663
|
+
message: string;
|
|
1664
|
+
};
|
|
1665
|
+
readonly response_400: {
|
|
1666
|
+
message: string;
|
|
1667
|
+
};
|
|
1668
|
+
readonly response_401: {
|
|
1669
|
+
message: string;
|
|
1670
|
+
};
|
|
1671
|
+
readonly response_404: {
|
|
1672
|
+
message: string;
|
|
1673
|
+
};
|
|
1674
|
+
readonly response_500: {
|
|
1675
|
+
message: string;
|
|
1676
|
+
error: string;
|
|
1677
|
+
};
|
|
1471
1678
|
}, {
|
|
1472
1679
|
readonly method: "post";
|
|
1473
1680
|
readonly path: "/campaign/stop/:id";
|
|
1474
1681
|
readonly role: "postCampaignStopById";
|
|
1475
1682
|
readonly name: "Stop campaign by ID";
|
|
1683
|
+
readonly response_200: {
|
|
1684
|
+
campaign: any;
|
|
1685
|
+
message: string;
|
|
1686
|
+
};
|
|
1687
|
+
readonly response_404: {
|
|
1688
|
+
message: string;
|
|
1689
|
+
};
|
|
1690
|
+
readonly response_500: {
|
|
1691
|
+
message: string;
|
|
1692
|
+
error: string;
|
|
1693
|
+
};
|
|
1476
1694
|
}, {
|
|
1477
1695
|
readonly method: "get";
|
|
1478
1696
|
readonly path: "/campaign";
|
|
1479
1697
|
readonly role: "getCampaigns";
|
|
1480
1698
|
readonly name: "Get campaigns";
|
|
1699
|
+
readonly response_200: {
|
|
1700
|
+
campaigns: any[];
|
|
1701
|
+
count: number;
|
|
1702
|
+
};
|
|
1703
|
+
readonly response_500: {
|
|
1704
|
+
message: string;
|
|
1705
|
+
error: string;
|
|
1706
|
+
};
|
|
1481
1707
|
}, {
|
|
1482
1708
|
readonly method: "get";
|
|
1483
1709
|
readonly path: "/campaign/insight/:id";
|
|
1484
1710
|
readonly role: "getCampaignInsightById";
|
|
1485
1711
|
readonly name: "Get campaign insight";
|
|
1712
|
+
readonly response_200: {
|
|
1713
|
+
stages: any[];
|
|
1714
|
+
};
|
|
1715
|
+
readonly response_400: {
|
|
1716
|
+
message: string;
|
|
1717
|
+
};
|
|
1718
|
+
readonly response_500: {
|
|
1719
|
+
message: string;
|
|
1720
|
+
error?: string;
|
|
1721
|
+
};
|
|
1486
1722
|
}, {
|
|
1487
1723
|
readonly method: "get";
|
|
1488
1724
|
readonly path: "/campaign/:id";
|
|
1489
1725
|
readonly role: "getCampaignById";
|
|
1490
1726
|
readonly name: "Get campaign";
|
|
1727
|
+
readonly response_200: {
|
|
1728
|
+
campaign: any | null;
|
|
1729
|
+
message: string;
|
|
1730
|
+
};
|
|
1731
|
+
readonly response_404: {
|
|
1732
|
+
message: string;
|
|
1733
|
+
error: string;
|
|
1734
|
+
};
|
|
1491
1735
|
}, {
|
|
1492
1736
|
readonly method: "put";
|
|
1493
1737
|
readonly path: "/campaign/:id";
|
|
1494
1738
|
readonly role: "putCampaignById";
|
|
1495
1739
|
readonly name: "Update campaign";
|
|
1740
|
+
readonly response_200: {
|
|
1741
|
+
campaign: any;
|
|
1742
|
+
message: string;
|
|
1743
|
+
};
|
|
1744
|
+
readonly response_404: {
|
|
1745
|
+
campaign: any | null;
|
|
1746
|
+
message: string;
|
|
1747
|
+
};
|
|
1748
|
+
readonly response_500: {
|
|
1749
|
+
message: string;
|
|
1750
|
+
error: string;
|
|
1751
|
+
};
|
|
1496
1752
|
}, {
|
|
1497
1753
|
readonly method: "delete";
|
|
1498
1754
|
readonly path: "/campaign/:id";
|
|
1499
1755
|
readonly role: "deleteCampaignById";
|
|
1500
1756
|
readonly name: "Delete campaign";
|
|
1757
|
+
readonly response_200: {
|
|
1758
|
+
campaign: any;
|
|
1759
|
+
message: string;
|
|
1760
|
+
};
|
|
1761
|
+
readonly response_404: {
|
|
1762
|
+
campaign: any | null;
|
|
1763
|
+
message: string;
|
|
1764
|
+
};
|
|
1765
|
+
readonly response_500: {
|
|
1766
|
+
message: string;
|
|
1767
|
+
error: string;
|
|
1768
|
+
};
|
|
1501
1769
|
}, {
|
|
1502
1770
|
readonly method: "post";
|
|
1503
1771
|
readonly path: "/category";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibiliaze/global-vars",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.138.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"scripts": {
|
|
23
23
|
"build": "tsc",
|
|
24
24
|
"pub": "npm publish --access public",
|
|
25
|
-
"git": "git add .; git commit -m 'changes'; git tag -a v1.
|
|
25
|
+
"git": "git add .; git commit -m 'changes'; git tag -a v1.138.0 -m 'v1.138.0'; git push origin v1.138.0; git push",
|
|
26
26
|
"push": "npm run build; npm run git; npm run pub"
|
|
27
27
|
},
|
|
28
28
|
"author": "Ibi Hasanli",
|