shred-api-client 2.9.3 → 2.9.5
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/index.d.ts +8 -3
- package/dist/index.js +16 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -3432,8 +3432,6 @@ declare const Actions: {
|
|
|
3432
3432
|
readonly PROJECT_REQUEST_REVIEW: "project.request_review";
|
|
3433
3433
|
readonly PROJECT_RECORD_INTERACTION: "project.record_interaction";
|
|
3434
3434
|
readonly PROJECT_CHECK_FREE_QUOTA: "project.check_free_quota";
|
|
3435
|
-
readonly PROJECT_LIST_OWN: "project.list_own";
|
|
3436
|
-
readonly PROJECT_VIEW_OWN: "project.view_own";
|
|
3437
3435
|
readonly EDITOR_LIST: "editor.list";
|
|
3438
3436
|
readonly EDITOR_GET: "editor.get";
|
|
3439
3437
|
readonly GOAL_VIEW_OWN: "goal.view_own";
|
|
@@ -3442,6 +3440,13 @@ declare const Actions: {
|
|
|
3442
3440
|
readonly NOTE_CREATE: "note.create";
|
|
3443
3441
|
readonly NOTE_UPDATE: "note.update";
|
|
3444
3442
|
readonly NOTE_DELETE: "note.delete";
|
|
3443
|
+
readonly NOTIFICATION_LIST_OWN: "notification.list_own";
|
|
3444
|
+
readonly NOTIFICATION_MARK_READ: "notification.mark_read";
|
|
3445
|
+
readonly NOTIFICATION_CLEAR: "notification.clear";
|
|
3446
|
+
readonly TRIGGER_VIEW: "trigger.view";
|
|
3447
|
+
readonly TRIGGER_CREATE: "trigger.create";
|
|
3448
|
+
readonly TRIGGER_UPDATE: "trigger.update";
|
|
3449
|
+
readonly TRIGGER_DELETE: "trigger.delete";
|
|
3445
3450
|
readonly TENANT_CREATE: "tenant.create";
|
|
3446
3451
|
readonly TENANT_LIST: "tenant.list";
|
|
3447
3452
|
readonly TENANT_VIEW: "tenant.view";
|
|
@@ -3493,7 +3498,7 @@ type Scope = {
|
|
|
3493
3498
|
type: "tenant";
|
|
3494
3499
|
id: string;
|
|
3495
3500
|
};
|
|
3496
|
-
type ActionGroup = "Projects" | "Editors" | "Goals" | "Notes" | "Tenants" | "Offers" | "Subscriptions" | "Scripts" | "Prompts" | "Email" | "Users" | "Administration";
|
|
3501
|
+
type ActionGroup = "Projects" | "Editors" | "Goals" | "Notes" | "Notifications" | "Tenants" | "Offers" | "Subscriptions" | "Scripts" | "Prompts" | "Email" | "Users" | "Administration";
|
|
3497
3502
|
type ActionMeta = {
|
|
3498
3503
|
label: string;
|
|
3499
3504
|
group: ActionGroup;
|
package/dist/index.js
CHANGED
|
@@ -6047,8 +6047,6 @@ var Actions = {
|
|
|
6047
6047
|
PROJECT_REQUEST_REVIEW: "project.request_review",
|
|
6048
6048
|
PROJECT_RECORD_INTERACTION: "project.record_interaction",
|
|
6049
6049
|
PROJECT_CHECK_FREE_QUOTA: "project.check_free_quota",
|
|
6050
|
-
PROJECT_LIST_OWN: "project.list_own",
|
|
6051
|
-
PROJECT_VIEW_OWN: "project.view_own",
|
|
6052
6050
|
// — Editors —
|
|
6053
6051
|
EDITOR_LIST: "editor.list",
|
|
6054
6052
|
EDITOR_GET: "editor.get",
|
|
@@ -6060,6 +6058,14 @@ var Actions = {
|
|
|
6060
6058
|
NOTE_CREATE: "note.create",
|
|
6061
6059
|
NOTE_UPDATE: "note.update",
|
|
6062
6060
|
NOTE_DELETE: "note.delete",
|
|
6061
|
+
// — Notifications (inbox + trigger) —
|
|
6062
|
+
NOTIFICATION_LIST_OWN: "notification.list_own",
|
|
6063
|
+
NOTIFICATION_MARK_READ: "notification.mark_read",
|
|
6064
|
+
NOTIFICATION_CLEAR: "notification.clear",
|
|
6065
|
+
TRIGGER_VIEW: "trigger.view",
|
|
6066
|
+
TRIGGER_CREATE: "trigger.create",
|
|
6067
|
+
TRIGGER_UPDATE: "trigger.update",
|
|
6068
|
+
TRIGGER_DELETE: "trigger.delete",
|
|
6063
6069
|
// — Tenants —
|
|
6064
6070
|
TENANT_CREATE: "tenant.create",
|
|
6065
6071
|
TENANT_LIST: "tenant.list",
|
|
@@ -6129,8 +6135,6 @@ var ActionCatalog = {
|
|
|
6129
6135
|
[Actions.PROJECT_REQUEST_REVIEW]: { label: "Request a review on your own project", group: "Projects" },
|
|
6130
6136
|
[Actions.PROJECT_RECORD_INTERACTION]: { label: "Record an interaction on your own project", group: "Projects" },
|
|
6131
6137
|
[Actions.PROJECT_CHECK_FREE_QUOTA]: { label: "Check your own free-project quota", group: "Projects" },
|
|
6132
|
-
[Actions.PROJECT_LIST_OWN]: { label: "List your own projects", group: "Projects" },
|
|
6133
|
-
[Actions.PROJECT_VIEW_OWN]: { label: "View your own project", group: "Projects" },
|
|
6134
6138
|
// Editors (staff)
|
|
6135
6139
|
[Actions.EDITOR_LIST]: { label: "List all editors", group: "Editors" },
|
|
6136
6140
|
[Actions.EDITOR_GET]: { label: "View any editor", group: "Editors" },
|
|
@@ -6142,6 +6146,14 @@ var ActionCatalog = {
|
|
|
6142
6146
|
[Actions.NOTE_CREATE]: { label: "Add a note to a user", group: "Notes" },
|
|
6143
6147
|
[Actions.NOTE_UPDATE]: { label: "Edit a user note", group: "Notes" },
|
|
6144
6148
|
[Actions.NOTE_DELETE]: { label: "Delete a user note", group: "Notes" },
|
|
6149
|
+
// Notifications
|
|
6150
|
+
[Actions.NOTIFICATION_LIST_OWN]: { label: "View your own notifications", group: "Notifications" },
|
|
6151
|
+
[Actions.NOTIFICATION_MARK_READ]: { label: "Mark your own notifications as read", group: "Notifications" },
|
|
6152
|
+
[Actions.NOTIFICATION_CLEAR]: { label: "Clear your own notifications", group: "Notifications" },
|
|
6153
|
+
[Actions.TRIGGER_VIEW]: { label: "View notification triggers", group: "Notifications" },
|
|
6154
|
+
[Actions.TRIGGER_CREATE]: { label: "Create notification triggers", group: "Notifications" },
|
|
6155
|
+
[Actions.TRIGGER_UPDATE]: { label: "Update notification triggers", group: "Notifications" },
|
|
6156
|
+
[Actions.TRIGGER_DELETE]: { label: "Delete notification triggers", group: "Notifications" },
|
|
6145
6157
|
// Tenants
|
|
6146
6158
|
[Actions.TENANT_CREATE]: { label: "Create a tenant", group: "Tenants" },
|
|
6147
6159
|
[Actions.TENANT_LIST]: { label: "List all tenants", group: "Tenants" },
|