shred-api-client 1.14.3 → 1.14.4-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/dist/api/AppConfig.api.d.ts +2 -2
  2. package/dist/api/AppConfig.api.js +25 -2
  3. package/dist/api/Email.api.d.ts +3 -3
  4. package/dist/api/Email.api.js +25 -2
  5. package/dist/api/Goal.api.d.ts +10 -0
  6. package/dist/api/Goal.api.js +42 -0
  7. package/dist/api/Note.api.d.ts +0 -0
  8. package/dist/api/Note.api.js +1 -0
  9. package/dist/api/Notification.api.d.ts +8 -8
  10. package/dist/api/Notification.api.js +32 -9
  11. package/dist/api/Project.api.d.ts +8 -8
  12. package/dist/api/Project.api.js +38 -18
  13. package/dist/api/Prompt.api.d.ts +6 -6
  14. package/dist/api/Prompt.api.js +6 -6
  15. package/dist/api/Subscription.api.d.ts +6 -6
  16. package/dist/api/Subscription.api.js +12 -12
  17. package/dist/api/Tenant.api.d.ts +7 -7
  18. package/dist/api/Tenant.api.js +7 -7
  19. package/dist/api/Track.api.d.ts +3 -3
  20. package/dist/api/Track.api.js +2 -2
  21. package/dist/api/User.api.d.ts +6 -6
  22. package/dist/api/User.api.js +15 -15
  23. package/dist/index.d.ts +13 -5
  24. package/dist/index.js +26 -16
  25. package/dist/model/Api.d.ts +20 -39
  26. package/dist/model/Api.js +3 -1
  27. package/dist/model/app-config/AppConfig.api.d.ts +9 -0
  28. package/dist/model/{AppConfig.schema.js → app-config/AppConfig.api.js} +2 -3
  29. package/dist/model/app-config/index.d.ts +1 -0
  30. package/dist/model/app-config/index.js +17 -0
  31. package/dist/model/asset/index.d.ts +2 -0
  32. package/dist/model/asset/index.js +5 -0
  33. package/dist/model/core/APIResponse.d.ts +6 -0
  34. package/dist/model/core/APIResponse.js +2 -0
  35. package/dist/model/core/Query.d.ts +15 -0
  36. package/dist/model/core/Query.js +2 -0
  37. package/dist/model/core/index.d.ts +2 -0
  38. package/dist/model/core/index.js +18 -0
  39. package/dist/model/email/Email.api.d.ts +11 -0
  40. package/dist/model/{Email.schema.js → email/Email.api.js} +2 -3
  41. package/dist/model/email/Email.schema.d.ts +15 -0
  42. package/dist/model/email/Email.schema.js +9 -0
  43. package/dist/model/email/index.d.ts +3 -0
  44. package/dist/model/email/index.js +20 -0
  45. package/dist/model/exceptions/index.d.ts +3 -2
  46. package/dist/model/exceptions/index.js +2 -1
  47. package/dist/model/goal/Goal.api.d.ts +11 -0
  48. package/dist/model/goal/Goal.api.js +6 -0
  49. package/dist/model/goal/Goal.schema.d.ts +154 -0
  50. package/dist/model/goal/Goal.schema.js +26 -0
  51. package/dist/model/goal/index.d.ts +3 -0
  52. package/dist/model/goal/index.js +22 -0
  53. package/dist/model/note/Note.api.d.ts +26 -0
  54. package/dist/model/note/Note.api.js +21 -0
  55. package/dist/model/note/Note.schema.d.ts +141 -0
  56. package/dist/model/note/Note.schema.js +30 -0
  57. package/dist/model/note/index.d.ts +2 -0
  58. package/dist/model/note/index.js +6 -0
  59. package/dist/model/notification/Notification.api.d.ts +47 -0
  60. package/dist/model/notification/Notification.api.js +13 -0
  61. package/dist/model/notification/Notification.schema.d.ts +454 -0
  62. package/dist/model/notification/Notification.schema.js +111 -0
  63. package/dist/model/notification/index.d.ts +3 -0
  64. package/dist/model/notification/index.js +30 -0
  65. package/dist/model/project/Project.api.d.ts +66 -0
  66. package/dist/model/project/Project.api.js +20 -0
  67. package/dist/model/project/Project.schema.d.ts +206 -0
  68. package/dist/model/{Project.schema.js → project/Project.schema.js} +31 -52
  69. package/dist/model/project/index.d.ts +3 -0
  70. package/dist/model/project/index.js +24 -0
  71. package/dist/model/{Prompt.schema.d.ts → prompt/Prompt.api.d.ts} +4 -24
  72. package/dist/model/{Prompt.schema.js → prompt/Prompt.api.js} +2 -3
  73. package/dist/model/prompt/Prompt.schema.d.ts +165 -0
  74. package/dist/model/prompt/Prompt.schema.js +24 -0
  75. package/dist/model/prompt/index.d.ts +3 -0
  76. package/dist/model/prompt/index.js +22 -0
  77. package/dist/model/{Subscription.schema.d.ts → subscription/Subscription.api.d.ts} +4 -51
  78. package/dist/model/{Subscription.schema.js → subscription/Subscription.api.js} +2 -8
  79. package/dist/model/subscription/Subscription.schema.d.ts +314 -0
  80. package/dist/model/subscription/Subscription.schema.js +53 -0
  81. package/dist/model/subscription/index.d.ts +3 -0
  82. package/dist/model/subscription/index.js +25 -0
  83. package/dist/model/{Tenant.schema.d.ts → tenant/Tenant.api.d.ts} +4 -29
  84. package/dist/model/{Tenant.schema.js → tenant/Tenant.api.js} +2 -3
  85. package/dist/model/tenant/Tenant.schema.d.ts +342 -0
  86. package/dist/model/tenant/Tenant.schema.js +29 -0
  87. package/dist/model/tenant/index.d.ts +3 -0
  88. package/dist/model/tenant/index.js +21 -0
  89. package/dist/model/track/Track.api.d.ts +10 -0
  90. package/dist/model/{Track.schema.js → track/Track.api.js} +2 -3
  91. package/dist/model/track/Track.schema.d.ts +44 -0
  92. package/dist/model/track/Track.schema.js +14 -0
  93. package/dist/model/track/index.d.ts +3 -0
  94. package/dist/model/track/index.js +21 -0
  95. package/dist/model/user/User.api.d.ts +80 -0
  96. package/dist/model/user/User.api.js +20 -0
  97. package/dist/model/user/User.schema.d.ts +117 -0
  98. package/dist/model/user/User.schema.js +42 -0
  99. package/dist/model/user/index.d.ts +3 -0
  100. package/dist/model/user/index.js +23 -0
  101. package/dist/util/parseQuery.d.ts +2 -2
  102. package/package.json +1 -1
  103. package/dist/model/AppConfig.schema.d.ts +0 -10
  104. package/dist/model/Email.schema.d.ts +0 -17
  105. package/dist/model/Notification.schema.d.ts +0 -112
  106. package/dist/model/Notification.schema.js +0 -38
  107. package/dist/model/Project.schema.d.ts +0 -152
  108. package/dist/model/Track.schema.d.ts +0 -20
  109. package/dist/model/User.schema.d.ts +0 -253
  110. package/dist/model/User.schema.js +0 -97
  111. package/dist/namespace.d.ts +0 -259
  112. package/dist/namespace.js +0 -53
  113. package/dist/model/{Asset.schema.d.ts → asset/Asset.schema.d.ts} +4 -4
  114. /package/dist/model/{Asset.schema.js → asset/Asset.schema.js} +0 -0
@@ -0,0 +1,117 @@
1
+ import { z } from "zod";
2
+ export declare enum Role {
3
+ USER = "User",
4
+ EDITOR = "Editor",
5
+ QA = "QA",
6
+ ADMIN = "ADMIN",
7
+ SYSTEM = "SYSTEM"
8
+ }
9
+ export declare enum System {
10
+ APP = "APP",
11
+ EDITOR = "EDITOR",
12
+ QA = "QA",
13
+ ADMIN = "ADMIN"
14
+ }
15
+ export declare const PreferencesSchema: z.ZodObject<{
16
+ primaryColor: z.ZodOptional<z.ZodString>;
17
+ secondaryColor: z.ZodOptional<z.ZodString>;
18
+ facebookLink: z.ZodOptional<z.ZodString>;
19
+ instagramLink: z.ZodOptional<z.ZodString>;
20
+ bRoll: z.ZodOptional<z.ZodBoolean>;
21
+ logo: z.ZodOptional<z.ZodString>;
22
+ }, "strip", z.ZodTypeAny, {
23
+ primaryColor?: string | undefined;
24
+ secondaryColor?: string | undefined;
25
+ facebookLink?: string | undefined;
26
+ instagramLink?: string | undefined;
27
+ bRoll?: boolean | undefined;
28
+ logo?: string | undefined;
29
+ }, {
30
+ primaryColor?: string | undefined;
31
+ secondaryColor?: string | undefined;
32
+ facebookLink?: string | undefined;
33
+ instagramLink?: string | undefined;
34
+ bRoll?: boolean | undefined;
35
+ logo?: string | undefined;
36
+ }>;
37
+ export declare const UserSchema: z.ZodObject<{
38
+ id: z.ZodString;
39
+ name: z.ZodString;
40
+ email: z.ZodString;
41
+ fcmToken: z.ZodOptional<z.ZodString>;
42
+ profession: z.ZodOptional<z.ZodString>;
43
+ photoUrl: z.ZodOptional<z.ZodString>;
44
+ preferences: z.ZodOptional<z.ZodObject<{
45
+ primaryColor: z.ZodOptional<z.ZodString>;
46
+ secondaryColor: z.ZodOptional<z.ZodString>;
47
+ facebookLink: z.ZodOptional<z.ZodString>;
48
+ instagramLink: z.ZodOptional<z.ZodString>;
49
+ bRoll: z.ZodOptional<z.ZodBoolean>;
50
+ logo: z.ZodOptional<z.ZodString>;
51
+ }, "strip", z.ZodTypeAny, {
52
+ primaryColor?: string | undefined;
53
+ secondaryColor?: string | undefined;
54
+ facebookLink?: string | undefined;
55
+ instagramLink?: string | undefined;
56
+ bRoll?: boolean | undefined;
57
+ logo?: string | undefined;
58
+ }, {
59
+ primaryColor?: string | undefined;
60
+ secondaryColor?: string | undefined;
61
+ facebookLink?: string | undefined;
62
+ instagramLink?: string | undefined;
63
+ bRoll?: boolean | undefined;
64
+ logo?: string | undefined;
65
+ }>>;
66
+ tenantId: z.ZodOptional<z.ZodString>;
67
+ editorId: z.ZodOptional<z.ZodString>;
68
+ timezone: z.ZodOptional<z.ZodString>;
69
+ experienceId: z.ZodOptional<z.ZodString>;
70
+ customerId: z.ZodString;
71
+ role: z.ZodNativeEnum<typeof Role>;
72
+ }, "strip", z.ZodTypeAny, {
73
+ email: string;
74
+ id: string;
75
+ name: string;
76
+ customerId: string;
77
+ role: Role;
78
+ timezone?: string | undefined;
79
+ tenantId?: string | undefined;
80
+ preferences?: {
81
+ primaryColor?: string | undefined;
82
+ secondaryColor?: string | undefined;
83
+ facebookLink?: string | undefined;
84
+ instagramLink?: string | undefined;
85
+ bRoll?: boolean | undefined;
86
+ logo?: string | undefined;
87
+ } | undefined;
88
+ fcmToken?: string | undefined;
89
+ profession?: string | undefined;
90
+ photoUrl?: string | undefined;
91
+ editorId?: string | undefined;
92
+ experienceId?: string | undefined;
93
+ }, {
94
+ email: string;
95
+ id: string;
96
+ name: string;
97
+ customerId: string;
98
+ role: Role;
99
+ timezone?: string | undefined;
100
+ tenantId?: string | undefined;
101
+ preferences?: {
102
+ primaryColor?: string | undefined;
103
+ secondaryColor?: string | undefined;
104
+ facebookLink?: string | undefined;
105
+ instagramLink?: string | undefined;
106
+ bRoll?: boolean | undefined;
107
+ logo?: string | undefined;
108
+ } | undefined;
109
+ fcmToken?: string | undefined;
110
+ profession?: string | undefined;
111
+ photoUrl?: string | undefined;
112
+ editorId?: string | undefined;
113
+ experienceId?: string | undefined;
114
+ }>;
115
+ export type User = z.infer<typeof UserSchema>;
116
+ export type Preferences = z.infer<typeof PreferencesSchema>;
117
+ export type Update = Pick<User, "name" | "profession" | "preferences" | "photoUrl" | "fcmToken" | "timezone" | "experienceId">;
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UserSchema = exports.PreferencesSchema = exports.System = exports.Role = void 0;
4
+ const zod_1 = require("zod");
5
+ var Role;
6
+ (function (Role) {
7
+ Role["USER"] = "User";
8
+ Role["EDITOR"] = "Editor";
9
+ Role["QA"] = "QA";
10
+ Role["ADMIN"] = "ADMIN";
11
+ Role["SYSTEM"] = "SYSTEM";
12
+ })(Role || (exports.Role = Role = {}));
13
+ var System;
14
+ (function (System) {
15
+ System["APP"] = "APP";
16
+ System["EDITOR"] = "EDITOR";
17
+ System["QA"] = "QA";
18
+ System["ADMIN"] = "ADMIN";
19
+ })(System || (exports.System = System = {}));
20
+ exports.PreferencesSchema = zod_1.z.object({
21
+ primaryColor: zod_1.z.string().optional(),
22
+ secondaryColor: zod_1.z.string().optional(),
23
+ facebookLink: zod_1.z.string().optional(),
24
+ instagramLink: zod_1.z.string().optional(),
25
+ bRoll: zod_1.z.boolean().optional(),
26
+ logo: zod_1.z.string().optional(),
27
+ });
28
+ exports.UserSchema = zod_1.z.object({
29
+ id: zod_1.z.string(),
30
+ name: zod_1.z.string(),
31
+ email: zod_1.z.string().email(),
32
+ fcmToken: zod_1.z.string().optional(),
33
+ profession: zod_1.z.string().optional(),
34
+ photoUrl: zod_1.z.string().optional(),
35
+ preferences: exports.PreferencesSchema.optional(),
36
+ tenantId: zod_1.z.string().optional(),
37
+ editorId: zod_1.z.string().optional(),
38
+ timezone: zod_1.z.string().optional(),
39
+ experienceId: zod_1.z.string().optional(),
40
+ customerId: zod_1.z.string(),
41
+ role: zod_1.z.nativeEnum(Role),
42
+ });
@@ -0,0 +1,3 @@
1
+ export type { User as Entity, Preferences, Update } from "./User.schema";
2
+ export { UserSchema, PreferencesSchema, Role, System } from "./User.schema";
3
+ export * from "./User.api";
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.System = exports.Role = exports.PreferencesSchema = exports.UserSchema = void 0;
18
+ var User_schema_1 = require("./User.schema");
19
+ Object.defineProperty(exports, "UserSchema", { enumerable: true, get: function () { return User_schema_1.UserSchema; } });
20
+ Object.defineProperty(exports, "PreferencesSchema", { enumerable: true, get: function () { return User_schema_1.PreferencesSchema; } });
21
+ Object.defineProperty(exports, "Role", { enumerable: true, get: function () { return User_schema_1.Role; } });
22
+ Object.defineProperty(exports, "System", { enumerable: true, get: function () { return User_schema_1.System; } });
23
+ __exportStar(require("./User.api"), exports);
@@ -1,2 +1,2 @@
1
- import { QueryOptions } from "../model/Api";
2
- export declare const buildQueryString: <T>(query: Partial<QueryOptions<T>>) => string;
1
+ import * as Core from "../model/core";
2
+ export declare const buildQueryString: <T>(query: Partial<Core.QueryOptions<T>>) => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shred-api-client",
3
- "version": "1.14.3",
3
+ "version": "1.14.4-rc.2",
4
4
  "description": "API Client for Shred",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -1,10 +0,0 @@
1
- interface APPConfigSchema {
2
- version: () => Promise<string>;
3
- }
4
- declare const AppConfigEndpoints: {
5
- Version: {
6
- uri: string;
7
- method: string;
8
- };
9
- };
10
- export { AppConfigEndpoints, APPConfigSchema };
@@ -1,17 +0,0 @@
1
- import Context from "./Context";
2
- interface EmailAPISchema {
3
- send: (email: Email, ctx?: Context) => Promise<boolean>;
4
- }
5
- declare const EmailEndpoints: {
6
- SendEmail: {
7
- uri: string;
8
- method: string;
9
- };
10
- };
11
- type Email = {
12
- to?: string;
13
- subject: string;
14
- body: string;
15
- };
16
- export default Email;
17
- export { Email, EmailEndpoints, EmailAPISchema };
@@ -1,112 +0,0 @@
1
- import Context from "./Context";
2
- import { Notification } from "./../namespace";
3
- import { APIResponse } from "./Api";
4
- interface NotificationSchema {
5
- getTriggers: (ctx: Context) => Promise<APIResponse<Trigger>>;
6
- createTrigger: (ctx: Context, t: Trigger) => Promise<Trigger>;
7
- deleteTrigger: (ctx: Context, triggerId: string) => Promise<boolean>;
8
- updateTrigger: (ctx: Context, triggerId: string, trigger: Partial<Trigger>) => Promise<Trigger>;
9
- push: (context: Context, notification: NotificationDetail) => Promise<boolean>;
10
- getNotifications: (ctx: Context) => Promise<APIResponse<NotificationItem>>;
11
- markAsRead: (ctx: Context, id: string) => Promise<boolean>;
12
- clearNotifications: (ctx: Context) => Promise<boolean>;
13
- }
14
- declare const NotificationEndpoints: {
15
- Create: {
16
- uri: string;
17
- method: string;
18
- };
19
- List: {
20
- uri: string;
21
- method: string;
22
- };
23
- Update: {
24
- uri: string;
25
- method: string;
26
- };
27
- Delete: {
28
- uri: string;
29
- method: string;
30
- };
31
- Push: {
32
- uri: string;
33
- method: string;
34
- };
35
- ListNotifications: {
36
- uri: string;
37
- method: string;
38
- };
39
- MarkAsRead: {
40
- uri: string;
41
- method: string;
42
- };
43
- ClearNotifications: {
44
- uri: string;
45
- method: string;
46
- };
47
- };
48
- type Criteria = {
49
- type: Notification.CriteriaType;
50
- params: Record<string, any>;
51
- };
52
- type History = {
53
- batchId: string;
54
- executedAt: number;
55
- timezone: string;
56
- status: "success" | "failed" | "info" | "warn";
57
- users: {
58
- total: number;
59
- success: number;
60
- error: number;
61
- };
62
- errorList?: {
63
- token: string;
64
- error: string;
65
- }[];
66
- executionTimeDuration?: number;
67
- };
68
- type RecurrenceRule = {
69
- frequency: Notification.Frequency;
70
- interval: number;
71
- weekDays?: Notification.WeekDay[];
72
- dayOfMonth?: number;
73
- endDate?: string;
74
- ocurrences?: number;
75
- };
76
- type Trigger = {
77
- id: string;
78
- title: string;
79
- description: string;
80
- transportType: Notification.TransportType[];
81
- notification: NotificationDetail;
82
- history?: History[];
83
- status: Notification.Status;
84
- recurrence?: RecurrenceRule;
85
- timezone?: string | null;
86
- tenantIds?: string[];
87
- executionDate?: string;
88
- timeOfDay: string;
89
- criteria: Criteria;
90
- nextExecution?: number;
91
- createdAt?: number;
92
- modified?: number;
93
- };
94
- type NotificationItem = {
95
- id: string;
96
- userId: string;
97
- triggerId?: string;
98
- title: string;
99
- body: string;
100
- status: "failed" | "delivered" | "deleted";
101
- deliveredAt: number;
102
- openedAt?: number;
103
- deletedAt?: number;
104
- cta?: {
105
- label: string;
106
- url: string;
107
- };
108
- metadata: Record<string, string | number>;
109
- error?: string;
110
- };
111
- type NotificationDetail = Pick<NotificationItem, "title" | "body" | "userId" | "metadata">;
112
- export { NotificationItem, NotificationSchema, NotificationEndpoints, NotificationDetail, RecurrenceRule, Trigger, Criteria, History, };
@@ -1,38 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NotificationEndpoints = void 0;
4
- const NotificationEndpoints = {
5
- Create: {
6
- uri: "/notifications/trigger/",
7
- method: "POST",
8
- },
9
- List: {
10
- uri: "/notifications/trigger/list/",
11
- method: "GET",
12
- },
13
- Update: {
14
- uri: "/notifications/trigger/:id/",
15
- method: "PUT",
16
- },
17
- Delete: {
18
- uri: "/notifications/trigger/:id/",
19
- method: "DELETE",
20
- },
21
- Push: {
22
- uri: "/notifications/push/",
23
- method: "POST",
24
- },
25
- ListNotifications: {
26
- uri: "/notifications/list/",
27
- method: "GET",
28
- },
29
- MarkAsRead: {
30
- uri: "/notifications/:id/read/",
31
- method: "PUT",
32
- },
33
- ClearNotifications: {
34
- uri: "/notifications/clear/",
35
- method: "DELETE",
36
- },
37
- };
38
- exports.NotificationEndpoints = NotificationEndpoints;
@@ -1,152 +0,0 @@
1
- import { Asset } from "./Asset.schema";
2
- import Context from "./Context";
3
- export type ProjectCreation = Pick<Project, "title" | "instructions" | "captionStyle" | "assets">;
4
- export type SendToApproval = {
5
- video: string;
6
- thumbnail: string;
7
- captionSuggestion: string;
8
- };
9
- export type Approve = {
10
- scheduleTime?: number;
11
- captionSuggestion: string;
12
- };
13
- export type Query = {
14
- startDate: string;
15
- endDate: string;
16
- timeZone?: string;
17
- };
18
- interface ProjectAPISchema {
19
- find: (context: Context, projectId: string) => Promise<Project>;
20
- create: (context: Context, data: ProjectCreation) => Promise<Project>;
21
- review: (context: Context, projectId: string, revision: string) => Promise<boolean>;
22
- cancel: (context: Context, projectId: string) => Promise<boolean>;
23
- list: (context: Context, query: Query) => Promise<Project[]>;
24
- start: (context: Context, projectId: string) => Promise<boolean>;
25
- sendToApproval: (context: Context, projectId: string, data: SendToApproval) => Promise<boolean>;
26
- approve: (context: Context, projectId: string, data: Approve) => Promise<boolean>;
27
- deny: (context: Context, projectId: string, denyFeedback: string, categories?: string[]) => Promise<boolean>;
28
- unschedule: (context: Context, projectId: string) => Promise<boolean>;
29
- rollback: (context: Context, projectId: string) => Promise<boolean>;
30
- getGoals: (context: Context) => Promise<Goal[]>;
31
- }
32
- declare const ProjectEndpoints: {
33
- List: {
34
- uri: string;
35
- method: string;
36
- };
37
- CreateProject: {
38
- uri: string;
39
- method: string;
40
- };
41
- FindOne: {
42
- uri: string;
43
- method: string;
44
- };
45
- GetGoals: {
46
- uri: string;
47
- method: string;
48
- };
49
- Review: {
50
- uri: string;
51
- method: string;
52
- };
53
- Cancel: {
54
- uri: string;
55
- method: string;
56
- };
57
- StartEdition: {
58
- uri: string;
59
- method: string;
60
- };
61
- SendToApproval: {
62
- uri: string;
63
- method: string;
64
- };
65
- Approve: {
66
- uri: string;
67
- method: string;
68
- };
69
- Unschedule: {
70
- uri: string;
71
- method: string;
72
- };
73
- Rollback: {
74
- uri: string;
75
- method: string;
76
- };
77
- Deny: {
78
- uri: string;
79
- method: string;
80
- };
81
- };
82
- export declare enum Status {
83
- SUBMITTED = 0,
84
- EDITING = 1,
85
- COMPLETED = 2,
86
- WAITING_APPROVE = 3,
87
- DENIED = 4,
88
- REVISIONING = 5,
89
- CANCELLED = 6,
90
- SCHEDULED = 7
91
- }
92
- export declare enum CaptionStyle {
93
- ONE_LINE = 1,
94
- ONE_LINE_EMOJIS = 2,
95
- TWO_LINES = 5,
96
- TWO_LINES_EMOJIS = 3,
97
- HOME_HIGHLIGHT = 4
98
- }
99
- interface Style {
100
- value: CaptionStyle;
101
- label: string;
102
- }
103
- export declare const Styles: Style[];
104
- type TimelineItem = {
105
- status: Status;
106
- title: string;
107
- description: string;
108
- timestamp: number;
109
- metadata: Record<string, any>;
110
- };
111
- type Project = {
112
- id: string;
113
- title: string;
114
- instructions: string;
115
- submitMonth: string;
116
- captionStyle: CaptionStyle;
117
- finalVideoId?: string;
118
- thumbnailUrl?: string;
119
- modified: number;
120
- captionSuggestion?: string;
121
- editorId: string;
122
- userId: string;
123
- assets?: Asset[];
124
- expirationTimestamp: number;
125
- timeline: TimelineItem[];
126
- submitTimestamp: number;
127
- tenantId?: string;
128
- status: Status;
129
- };
130
- type DailyMilestone = {
131
- id: string;
132
- date: string;
133
- target: number;
134
- progress: number;
135
- };
136
- type WeeklyMilestone = {
137
- id: string;
138
- week: string;
139
- target: number;
140
- progress: number;
141
- dailyMilestones: DailyMilestone[];
142
- };
143
- type Goal = {
144
- id: string;
145
- editorId: string;
146
- month: string;
147
- target: number;
148
- progress: number;
149
- createdAt: number;
150
- weeklyMilestones: WeeklyMilestone[];
151
- };
152
- export { Project, DailyMilestone, WeeklyMilestone, Goal, ProjectAPISchema, ProjectEndpoints, TimelineItem, };
@@ -1,20 +0,0 @@
1
- interface TrackAPISchema {
2
- send: (t: Track) => Promise<boolean>;
3
- }
4
- declare const TrackEndpoints: {
5
- Track: {
6
- uri: string;
7
- method: string;
8
- };
9
- };
10
- type TrackParam = {
11
- name: string;
12
- value: string | number;
13
- };
14
- type Track = {
15
- category: string;
16
- label: string;
17
- action: string;
18
- params?: TrackParam[];
19
- };
20
- export { Track, TrackEndpoints, TrackAPISchema };