@burdenoff/sdk-libs 2026.501.6
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/LICENSE +4 -0
- package/README.md +52 -0
- package/dist/chunk-NEREAHJ6.js +1 -0
- package/dist/chunk-YGVAZ3D7.js +2 -0
- package/dist/core/index.cjs +2 -0
- package/dist/core/index.d.cts +52 -0
- package/dist/core/index.d.ts +52 -0
- package/dist/core/index.js +1 -0
- package/dist/index.cjs +2 -0
- package/dist/index.d.cts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +1 -0
- package/dist/module-JDbvil5h.d.cts +194 -0
- package/dist/module-JDbvil5h.d.ts +194 -0
- package/dist/modules/auth/index.cjs +71 -0
- package/dist/modules/auth/index.d.cts +94 -0
- package/dist/modules/auth/index.d.ts +94 -0
- package/dist/modules/auth/index.js +71 -0
- package/dist/modules/billing/index.cjs +203 -0
- package/dist/modules/billing/index.d.cts +377 -0
- package/dist/modules/billing/index.d.ts +377 -0
- package/dist/modules/billing/index.js +203 -0
- package/dist/modules/channels/index.cjs +108 -0
- package/dist/modules/channels/index.d.cts +146 -0
- package/dist/modules/channels/index.d.ts +146 -0
- package/dist/modules/channels/index.js +108 -0
- package/dist/modules/conversations/index.cjs +61 -0
- package/dist/modules/conversations/index.d.cts +112 -0
- package/dist/modules/conversations/index.d.ts +112 -0
- package/dist/modules/conversations/index.js +61 -0
- package/dist/modules/devportal/index.cjs +216 -0
- package/dist/modules/devportal/index.d.cts +303 -0
- package/dist/modules/devportal/index.d.ts +303 -0
- package/dist/modules/devportal/index.js +216 -0
- package/dist/modules/export/index.cjs +61 -0
- package/dist/modules/export/index.d.cts +169 -0
- package/dist/modules/export/index.d.ts +169 -0
- package/dist/modules/export/index.js +61 -0
- package/dist/modules/files/index.cjs +51 -0
- package/dist/modules/files/index.d.cts +102 -0
- package/dist/modules/files/index.d.ts +102 -0
- package/dist/modules/files/index.js +51 -0
- package/dist/modules/groups/index.cjs +80 -0
- package/dist/modules/groups/index.d.cts +168 -0
- package/dist/modules/groups/index.d.ts +168 -0
- package/dist/modules/groups/index.js +80 -0
- package/dist/modules/health/index.cjs +5 -0
- package/dist/modules/health/index.d.cts +18 -0
- package/dist/modules/health/index.d.ts +18 -0
- package/dist/modules/health/index.js +5 -0
- package/dist/modules/integrations/index.cjs +65 -0
- package/dist/modules/integrations/index.d.cts +120 -0
- package/dist/modules/integrations/index.d.ts +120 -0
- package/dist/modules/integrations/index.js +65 -0
- package/dist/modules/notifications/index.cjs +53 -0
- package/dist/modules/notifications/index.d.cts +140 -0
- package/dist/modules/notifications/index.d.ts +140 -0
- package/dist/modules/notifications/index.js +53 -0
- package/dist/modules/organizations/index.cjs +72 -0
- package/dist/modules/organizations/index.d.cts +88 -0
- package/dist/modules/organizations/index.d.ts +88 -0
- package/dist/modules/organizations/index.js +72 -0
- package/dist/modules/products/index.cjs +149 -0
- package/dist/modules/products/index.d.cts +361 -0
- package/dist/modules/products/index.d.ts +361 -0
- package/dist/modules/products/index.js +149 -0
- package/dist/modules/rbac/index.cjs +55 -0
- package/dist/modules/rbac/index.d.cts +100 -0
- package/dist/modules/rbac/index.d.ts +100 -0
- package/dist/modules/rbac/index.js +55 -0
- package/dist/modules/scheduler/index.cjs +61 -0
- package/dist/modules/scheduler/index.d.cts +121 -0
- package/dist/modules/scheduler/index.d.ts +121 -0
- package/dist/modules/scheduler/index.js +61 -0
- package/dist/modules/security/index.cjs +61 -0
- package/dist/modules/security/index.d.cts +110 -0
- package/dist/modules/security/index.d.ts +110 -0
- package/dist/modules/security/index.js +61 -0
- package/dist/modules/store/index.cjs +82 -0
- package/dist/modules/store/index.d.cts +139 -0
- package/dist/modules/store/index.d.ts +139 -0
- package/dist/modules/store/index.js +82 -0
- package/dist/modules/support/index.cjs +56 -0
- package/dist/modules/support/index.d.cts +147 -0
- package/dist/modules/support/index.d.ts +147 -0
- package/dist/modules/support/index.js +56 -0
- package/dist/modules/tags/index.cjs +55 -0
- package/dist/modules/tags/index.d.cts +131 -0
- package/dist/modules/tags/index.d.ts +131 -0
- package/dist/modules/tags/index.js +55 -0
- package/dist/modules/tours/index.cjs +37 -0
- package/dist/modules/tours/index.d.cts +61 -0
- package/dist/modules/tours/index.d.ts +61 -0
- package/dist/modules/tours/index.js +37 -0
- package/dist/modules/vibecontrols/index.cjs +1081 -0
- package/dist/modules/vibecontrols/index.d.cts +1483 -0
- package/dist/modules/vibecontrols/index.d.ts +1483 -0
- package/dist/modules/vibecontrols/index.js +1081 -0
- package/dist/modules/workspaces/index.cjs +91 -0
- package/dist/modules/workspaces/index.d.cts +128 -0
- package/dist/modules/workspaces/index.d.ts +128 -0
- package/dist/modules/workspaces/index.js +91 -0
- package/package.json +117 -0
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { J as Json, S as SdkModule } from '../../module-JDbvil5h.js';
|
|
2
|
+
import 'graphql-request';
|
|
3
|
+
|
|
4
|
+
type SupportTicketStatus = 'CLOSED' | 'IN_PROGRESS' | 'NEW' | 'REOPENED' | 'RESOLVED' | 'WAITING_CUSTOMER';
|
|
5
|
+
type SupportTicketPriority = 'CRITICAL' | 'HIGH' | 'LOW' | 'NORMAL';
|
|
6
|
+
type SupportTicketCategory = 'BILLING_ACCOUNT' | 'BUG_REPORT' | 'FEATURE_REQUEST' | 'GENERAL_SUPPORT' | 'TECHNICAL_SUPPORT';
|
|
7
|
+
type TicketSource = 'API' | 'EMAIL' | 'IMPORT' | 'IN_APP' | 'PHONE' | 'WEBSITE';
|
|
8
|
+
type MessageType = 'AGENT_REPLY' | 'CUSTOMER_REPLY' | 'INTERNAL_NOTE' | 'SYSTEM_MESSAGE';
|
|
9
|
+
type ArticleStatus = 'ARCHIVED' | 'DRAFT' | 'PUBLISHED' | 'REVIEW';
|
|
10
|
+
interface SupportContextInput {
|
|
11
|
+
workspaceId?: string;
|
|
12
|
+
userId?: string;
|
|
13
|
+
projectId?: string;
|
|
14
|
+
appId?: string;
|
|
15
|
+
custom?: Json;
|
|
16
|
+
}
|
|
17
|
+
interface SupportTicket {
|
|
18
|
+
id: string;
|
|
19
|
+
ticketNumber: string;
|
|
20
|
+
userId: string;
|
|
21
|
+
tenantId?: string | null;
|
|
22
|
+
workspaceId?: string | null;
|
|
23
|
+
subject: string;
|
|
24
|
+
description: string;
|
|
25
|
+
status: SupportTicketStatus;
|
|
26
|
+
priority: SupportTicketPriority;
|
|
27
|
+
category?: SupportTicketCategory | null;
|
|
28
|
+
categoryId?: string | null;
|
|
29
|
+
source: TicketSource;
|
|
30
|
+
assignedTo?: string | null;
|
|
31
|
+
tags: string[];
|
|
32
|
+
resolvedAt?: string | null;
|
|
33
|
+
closedAt?: string | null;
|
|
34
|
+
reopenedAt?: string | null;
|
|
35
|
+
metadata?: Json;
|
|
36
|
+
customFields?: Json;
|
|
37
|
+
createdAt: string;
|
|
38
|
+
updatedAt: string;
|
|
39
|
+
}
|
|
40
|
+
interface SupportTicketConnection {
|
|
41
|
+
nodes: SupportTicket[];
|
|
42
|
+
totalCount: number;
|
|
43
|
+
hasMore: boolean;
|
|
44
|
+
}
|
|
45
|
+
interface SupportMessage {
|
|
46
|
+
id: string;
|
|
47
|
+
ticketId: string;
|
|
48
|
+
authorId: string;
|
|
49
|
+
message: string;
|
|
50
|
+
type: MessageType;
|
|
51
|
+
attachments: string[];
|
|
52
|
+
attachmentCount: number;
|
|
53
|
+
isInternal: boolean;
|
|
54
|
+
createdAt: string;
|
|
55
|
+
updatedAt: string;
|
|
56
|
+
}
|
|
57
|
+
interface KnowledgeBaseArticle {
|
|
58
|
+
id: string;
|
|
59
|
+
tenantId?: string | null;
|
|
60
|
+
categoryId?: string | null;
|
|
61
|
+
title: string;
|
|
62
|
+
slug: string;
|
|
63
|
+
content: string;
|
|
64
|
+
excerpt?: string | null;
|
|
65
|
+
tags: string[];
|
|
66
|
+
metaDescription?: string | null;
|
|
67
|
+
status: ArticleStatus;
|
|
68
|
+
authorId: string;
|
|
69
|
+
publishedAt?: string | null;
|
|
70
|
+
archivedAt?: string | null;
|
|
71
|
+
viewCount: number;
|
|
72
|
+
helpfulCount: number;
|
|
73
|
+
notHelpfulCount: number;
|
|
74
|
+
helpfulnessScore?: number | null;
|
|
75
|
+
version: number;
|
|
76
|
+
previousVersion?: string | null;
|
|
77
|
+
createdAt: string;
|
|
78
|
+
updatedAt: string;
|
|
79
|
+
}
|
|
80
|
+
interface SupportTicketFilterInput {
|
|
81
|
+
userId?: string;
|
|
82
|
+
workspaceId?: string;
|
|
83
|
+
status?: SupportTicketStatus;
|
|
84
|
+
statuses?: SupportTicketStatus[];
|
|
85
|
+
priority?: SupportTicketPriority;
|
|
86
|
+
priorities?: SupportTicketPriority[];
|
|
87
|
+
category?: SupportTicketCategory;
|
|
88
|
+
categoryId?: string;
|
|
89
|
+
source?: TicketSource;
|
|
90
|
+
assignedTo?: string;
|
|
91
|
+
tags?: string[];
|
|
92
|
+
startDate?: string;
|
|
93
|
+
endDate?: string;
|
|
94
|
+
}
|
|
95
|
+
interface CreateSupportTicketInput {
|
|
96
|
+
workspaceId?: string;
|
|
97
|
+
subject: string;
|
|
98
|
+
description: string;
|
|
99
|
+
priority?: SupportTicketPriority;
|
|
100
|
+
category?: SupportTicketCategory;
|
|
101
|
+
categoryId?: string;
|
|
102
|
+
source?: TicketSource;
|
|
103
|
+
tags?: string[];
|
|
104
|
+
metadata?: Json;
|
|
105
|
+
customFields?: Json;
|
|
106
|
+
context?: SupportContextInput;
|
|
107
|
+
}
|
|
108
|
+
interface CreateSupportMessageInput {
|
|
109
|
+
ticketId: string;
|
|
110
|
+
message: string;
|
|
111
|
+
type?: MessageType;
|
|
112
|
+
attachments?: string[];
|
|
113
|
+
isInternal?: boolean;
|
|
114
|
+
context?: SupportContextInput;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
interface KbApi {
|
|
118
|
+
search(q: string, opts?: {
|
|
119
|
+
categoryId?: string;
|
|
120
|
+
limit?: number;
|
|
121
|
+
offset?: number;
|
|
122
|
+
}): Promise<KnowledgeBaseArticle[]>;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
interface TicketsApi {
|
|
126
|
+
list(filter?: SupportTicketFilterInput, opts?: {
|
|
127
|
+
limit?: number;
|
|
128
|
+
offset?: number;
|
|
129
|
+
}): Promise<SupportTicketConnection>;
|
|
130
|
+
get(id: string): Promise<SupportTicket | null>;
|
|
131
|
+
create(input: CreateSupportTicketInput): Promise<SupportTicket>;
|
|
132
|
+
comment(ticketId: string, message: string, opts?: {
|
|
133
|
+
type?: CreateSupportMessageInput['type'];
|
|
134
|
+
attachments?: string[];
|
|
135
|
+
isInternal?: boolean;
|
|
136
|
+
context?: SupportContextInput;
|
|
137
|
+
}): Promise<SupportMessage>;
|
|
138
|
+
close(id: string): Promise<SupportTicket>;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
interface SupportApi {
|
|
142
|
+
tickets: TicketsApi;
|
|
143
|
+
kb: KbApi;
|
|
144
|
+
}
|
|
145
|
+
declare const supportModule: SdkModule<SupportApi>;
|
|
146
|
+
|
|
147
|
+
export { type ArticleStatus, type CreateSupportMessageInput, type CreateSupportTicketInput, type KbApi, type KnowledgeBaseArticle, type MessageType, type SupportApi, type SupportContextInput, type SupportMessage, type SupportTicket, type SupportTicketCategory, type SupportTicketConnection, type SupportTicketFilterInput, type SupportTicketPriority, type SupportTicketStatus, type TicketSource, type TicketsApi, supportModule as default };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
var i=`
|
|
2
|
+
fragment SupportTicketFields on SupportTicket {
|
|
3
|
+
id ticketNumber userId tenantId workspaceId subject description
|
|
4
|
+
status priority category categoryId source assignedTo tags
|
|
5
|
+
resolvedAt closedAt reopenedAt metadata customFields
|
|
6
|
+
createdAt updatedAt
|
|
7
|
+
}
|
|
8
|
+
`,g=`
|
|
9
|
+
fragment SupportMessageFields on SupportMessage {
|
|
10
|
+
id ticketId authorId message type attachments attachmentCount
|
|
11
|
+
isInternal createdAt updatedAt
|
|
12
|
+
}
|
|
13
|
+
`,I=`
|
|
14
|
+
fragment KnowledgeBaseArticleFields on KnowledgeBaseArticle {
|
|
15
|
+
id tenantId categoryId title slug content excerpt tags
|
|
16
|
+
metaDescription status authorId publishedAt archivedAt
|
|
17
|
+
viewCount helpfulCount notHelpfulCount helpfulnessScore
|
|
18
|
+
version previousVersion createdAt updatedAt
|
|
19
|
+
}
|
|
20
|
+
`,a=`
|
|
21
|
+
${i}
|
|
22
|
+
query SupportTickets($filter: SupportTicketFilterInput, $limit: Int, $offset: Int) {
|
|
23
|
+
supportTickets(filter: $filter, limit: $limit, offset: $offset) {
|
|
24
|
+
nodes { ...SupportTicketFields }
|
|
25
|
+
totalCount
|
|
26
|
+
hasMore
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
`,c=`
|
|
30
|
+
${i}
|
|
31
|
+
query SupportTicket($id: ID!) {
|
|
32
|
+
supportTicket(id: $id) { ...SupportTicketFields }
|
|
33
|
+
}
|
|
34
|
+
`,u=`
|
|
35
|
+
${i}
|
|
36
|
+
mutation CreateSupportTicket($input: CreateSupportTicketInput!) {
|
|
37
|
+
createSupportTicket(input: $input) { ...SupportTicketFields }
|
|
38
|
+
}
|
|
39
|
+
`,d=`
|
|
40
|
+
${g}
|
|
41
|
+
mutation CreateSupportMessage($input: CreateSupportMessageInput!) {
|
|
42
|
+
createSupportMessage(input: $input) { ...SupportMessageFields }
|
|
43
|
+
}
|
|
44
|
+
`,S=`
|
|
45
|
+
${i}
|
|
46
|
+
mutation CloseSupportTicket($id: ID!) {
|
|
47
|
+
closeSupportTicket(id: $id) { ...SupportTicketFields }
|
|
48
|
+
}
|
|
49
|
+
`,l=`
|
|
50
|
+
${I}
|
|
51
|
+
query SearchKnowledgeBase($query: String!, $categoryId: String, $limit: Int, $offset: Int) {
|
|
52
|
+
searchKnowledgeBase(query: $query, categoryId: $categoryId, limit: $limit, offset: $offset) {
|
|
53
|
+
...KnowledgeBaseArticleFields
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
`;function T(o){let{global:r}=o.gql;return {async search(t,e){return (await r.request(l,{query:t,categoryId:e?.categoryId,limit:e?.limit,offset:e?.offset})).searchKnowledgeBase}}}function k(o){let{global:r}=o.gql;return {async list(t,e){return (await r.request(a,{filter:t,limit:e?.limit,offset:e?.offset})).supportTickets},async get(t){return (await r.request(c,{id:t})).supportTicket},async create(t){return (await r.request(u,{input:t})).createSupportTicket},async comment(t,e,p){let m={ticketId:t,message:e,type:p?.type,attachments:p?.attachments,isInternal:p?.isInternal,context:p?.context};return (await r.request(d,{input:m})).createSupportMessage},async close(t){return (await r.request(S,{id:t})).closeSupportTicket}}}var f={id:"support",version:"1.0.0",displayName:"Support",dependsOn:["auth"],attach(o){return {tickets:k(o),kb:T(o)}}},F=f;export{F as default};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
'use strict';var s=`
|
|
2
|
+
fragment TagFields on UniversalTag {
|
|
3
|
+
id key label name slug description
|
|
4
|
+
vocabularyId scope tenantId workspaceId createdBy
|
|
5
|
+
parentId hierarchyPath hierarchyLevel
|
|
6
|
+
value icon color displayOrder
|
|
7
|
+
usageCount lastUsedAt
|
|
8
|
+
createdAt updatedAt deletedAt
|
|
9
|
+
}
|
|
10
|
+
`,r=`
|
|
11
|
+
${s}
|
|
12
|
+
query GetTags($filter: TagFilterInput, $pagination: TagsPaginationInput) {
|
|
13
|
+
getTags(filter: $filter, pagination: $pagination) {
|
|
14
|
+
items { ...TagFields }
|
|
15
|
+
total
|
|
16
|
+
hasMore
|
|
17
|
+
nextCursor
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
`,g=`
|
|
21
|
+
${s}
|
|
22
|
+
query GetTag($id: ID!) { getTag(id: $id) { ...TagFields } }
|
|
23
|
+
`,o=`
|
|
24
|
+
${s}
|
|
25
|
+
mutation CreateTag($input: CreateTagInput!) {
|
|
26
|
+
createTag(input: $input) { ...TagFields }
|
|
27
|
+
}
|
|
28
|
+
`,T=`
|
|
29
|
+
${s}
|
|
30
|
+
mutation UpdateTag($id: ID!, $input: UpdateTagInput!) {
|
|
31
|
+
updateTag(id: $id, input: $input) { ...TagFields }
|
|
32
|
+
}
|
|
33
|
+
`,p="mutation DeleteTag($id: ID!) { deleteTag(id: $id) }",d=`
|
|
34
|
+
query GetTagUsageStats($tagId: ID!) {
|
|
35
|
+
getTagUsageStats(tagId: $tagId) {
|
|
36
|
+
totalAssignments activeAssignments uniqueEntities
|
|
37
|
+
topEntityTypes { entityType count }
|
|
38
|
+
recentActivity { action entityType entityId performedById timestamp }
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
`,u=`
|
|
42
|
+
query GetTagPermissions($tagId: ID!) {
|
|
43
|
+
getTagPermissions(tagId: $tagId) {
|
|
44
|
+
id tagId actorId actorType action grantedAt grantedBy
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
`,c=`
|
|
48
|
+
mutation GrantTagPermission($input: GrantTagPermissionInput!) {
|
|
49
|
+
grantTagPermission(input: $input) {
|
|
50
|
+
id tagId actorId actorType action grantedAt grantedBy
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
`,m=`
|
|
54
|
+
mutation RevokeTagPermission($id: ID!) { revokeTagPermission(id: $id) }
|
|
55
|
+
`;function l(i){let{workspace:e}=i.gql;return {async list(t,a){return (await e.request(r,{filter:t,pagination:a})).getTags},async get(t){return (await e.request(g,{id:t})).getTag},async create(t){return (await e.request(o,{input:t})).createTag},async update(t,a){return (await e.request(T,{id:t,input:a})).updateTag},async delete(t){return (await e.request(p,{id:t})).deleteTag},async analytics(t){return (await e.request(d,{tagId:t})).getTagUsageStats},permissions:{async list(t){return (await e.request(u,{tagId:t})).getTagPermissions},async grant(t){return (await e.request(c,{input:t})).grantTagPermission},async revoke(t){return (await e.request(m,{id:t})).revokeTagPermission}}}}var A={id:"tags",version:"1.0.0",displayName:"Tags",dependsOn:["auth"],attach(i){return l(i)}},$=A;module.exports=$;
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { C as ContextInput, J as Json, P as PaginationInput, S as SdkModule } from '../../module-JDbvil5h.cjs';
|
|
2
|
+
import 'graphql-request';
|
|
3
|
+
|
|
4
|
+
type TagScope = 'GLOBAL' | 'TENANT' | 'WORKSPACE' | 'PRIVATE';
|
|
5
|
+
interface OperationContext {
|
|
6
|
+
appId?: string | null;
|
|
7
|
+
userId?: string | null;
|
|
8
|
+
workspaceId?: string | null;
|
|
9
|
+
projectId?: string | null;
|
|
10
|
+
custom?: Json;
|
|
11
|
+
}
|
|
12
|
+
interface UniversalTag {
|
|
13
|
+
id: string;
|
|
14
|
+
key: string;
|
|
15
|
+
label: string;
|
|
16
|
+
name: string;
|
|
17
|
+
slug: string;
|
|
18
|
+
description?: string | null;
|
|
19
|
+
vocabularyId: string;
|
|
20
|
+
scope: TagScope;
|
|
21
|
+
tenantId?: string | null;
|
|
22
|
+
workspaceId?: string | null;
|
|
23
|
+
createdBy?: string | null;
|
|
24
|
+
parentId?: string | null;
|
|
25
|
+
hierarchyPath?: string | null;
|
|
26
|
+
hierarchyLevel: number;
|
|
27
|
+
value?: string | null;
|
|
28
|
+
icon?: string | null;
|
|
29
|
+
color?: string | null;
|
|
30
|
+
displayOrder: number;
|
|
31
|
+
usageCount: number;
|
|
32
|
+
lastUsedAt?: string | null;
|
|
33
|
+
context?: OperationContext | null;
|
|
34
|
+
createdAt: string;
|
|
35
|
+
updatedAt: string;
|
|
36
|
+
deletedAt?: string | null;
|
|
37
|
+
}
|
|
38
|
+
interface TagList {
|
|
39
|
+
items: UniversalTag[];
|
|
40
|
+
total: number;
|
|
41
|
+
hasMore: boolean;
|
|
42
|
+
nextCursor?: string | null;
|
|
43
|
+
}
|
|
44
|
+
interface TagFilterInput {
|
|
45
|
+
vocabularyId?: string;
|
|
46
|
+
scope?: TagScope;
|
|
47
|
+
tenantId?: string;
|
|
48
|
+
workspaceId?: string;
|
|
49
|
+
parentId?: string;
|
|
50
|
+
key?: string;
|
|
51
|
+
label?: string;
|
|
52
|
+
search?: string;
|
|
53
|
+
hasParent?: boolean;
|
|
54
|
+
createdBy?: string;
|
|
55
|
+
context?: ContextInput;
|
|
56
|
+
}
|
|
57
|
+
interface CreateTagInput {
|
|
58
|
+
vocabularyId: string;
|
|
59
|
+
key: string;
|
|
60
|
+
label: string;
|
|
61
|
+
description?: string;
|
|
62
|
+
parentId?: string;
|
|
63
|
+
value?: string;
|
|
64
|
+
icon?: string;
|
|
65
|
+
color?: string;
|
|
66
|
+
displayOrder?: number;
|
|
67
|
+
scope?: TagScope;
|
|
68
|
+
context?: ContextInput;
|
|
69
|
+
}
|
|
70
|
+
interface UpdateTagInput {
|
|
71
|
+
label?: string;
|
|
72
|
+
description?: string;
|
|
73
|
+
parentId?: string;
|
|
74
|
+
value?: string;
|
|
75
|
+
icon?: string;
|
|
76
|
+
color?: string;
|
|
77
|
+
displayOrder?: number;
|
|
78
|
+
context?: ContextInput;
|
|
79
|
+
}
|
|
80
|
+
interface TagEntityTypeCount {
|
|
81
|
+
entityType: string;
|
|
82
|
+
count: number;
|
|
83
|
+
}
|
|
84
|
+
interface TagActivityItem {
|
|
85
|
+
action: string;
|
|
86
|
+
entityType: string;
|
|
87
|
+
entityId: string;
|
|
88
|
+
performedById: string;
|
|
89
|
+
timestamp: string;
|
|
90
|
+
}
|
|
91
|
+
interface TagUsageStats {
|
|
92
|
+
totalAssignments: number;
|
|
93
|
+
activeAssignments: number;
|
|
94
|
+
uniqueEntities: number;
|
|
95
|
+
topEntityTypes: TagEntityTypeCount[];
|
|
96
|
+
recentActivity: TagActivityItem[];
|
|
97
|
+
}
|
|
98
|
+
interface TagPermission {
|
|
99
|
+
id: string;
|
|
100
|
+
tagId: string;
|
|
101
|
+
actorId: string;
|
|
102
|
+
actorType: string;
|
|
103
|
+
action: string;
|
|
104
|
+
grantedAt: string;
|
|
105
|
+
grantedBy: string;
|
|
106
|
+
}
|
|
107
|
+
interface GrantTagPermissionInput {
|
|
108
|
+
tagId: string;
|
|
109
|
+
actorId: string;
|
|
110
|
+
actorType: string;
|
|
111
|
+
action: string;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
interface TagsPermissionsApi {
|
|
115
|
+
list(tagId: string): Promise<TagPermission[]>;
|
|
116
|
+
grant(input: GrantTagPermissionInput): Promise<TagPermission>;
|
|
117
|
+
revoke(permissionId: string): Promise<boolean>;
|
|
118
|
+
}
|
|
119
|
+
interface TagsApi {
|
|
120
|
+
list(filter?: TagFilterInput, pagination?: PaginationInput): Promise<TagList>;
|
|
121
|
+
get(id: string): Promise<UniversalTag | null>;
|
|
122
|
+
create(input: CreateTagInput): Promise<UniversalTag>;
|
|
123
|
+
update(id: string, input: UpdateTagInput): Promise<UniversalTag>;
|
|
124
|
+
delete(id: string): Promise<boolean>;
|
|
125
|
+
analytics(tagId: string): Promise<TagUsageStats>;
|
|
126
|
+
permissions: TagsPermissionsApi;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
declare const tagsModule: SdkModule<TagsApi>;
|
|
130
|
+
|
|
131
|
+
export { type CreateTagInput, type GrantTagPermissionInput, type OperationContext, type TagActivityItem, type TagEntityTypeCount, type TagFilterInput, type TagList, type TagPermission, type TagScope, type TagUsageStats, type TagsApi, type TagsPermissionsApi, type UniversalTag, type UpdateTagInput, tagsModule as default };
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { C as ContextInput, J as Json, P as PaginationInput, S as SdkModule } from '../../module-JDbvil5h.js';
|
|
2
|
+
import 'graphql-request';
|
|
3
|
+
|
|
4
|
+
type TagScope = 'GLOBAL' | 'TENANT' | 'WORKSPACE' | 'PRIVATE';
|
|
5
|
+
interface OperationContext {
|
|
6
|
+
appId?: string | null;
|
|
7
|
+
userId?: string | null;
|
|
8
|
+
workspaceId?: string | null;
|
|
9
|
+
projectId?: string | null;
|
|
10
|
+
custom?: Json;
|
|
11
|
+
}
|
|
12
|
+
interface UniversalTag {
|
|
13
|
+
id: string;
|
|
14
|
+
key: string;
|
|
15
|
+
label: string;
|
|
16
|
+
name: string;
|
|
17
|
+
slug: string;
|
|
18
|
+
description?: string | null;
|
|
19
|
+
vocabularyId: string;
|
|
20
|
+
scope: TagScope;
|
|
21
|
+
tenantId?: string | null;
|
|
22
|
+
workspaceId?: string | null;
|
|
23
|
+
createdBy?: string | null;
|
|
24
|
+
parentId?: string | null;
|
|
25
|
+
hierarchyPath?: string | null;
|
|
26
|
+
hierarchyLevel: number;
|
|
27
|
+
value?: string | null;
|
|
28
|
+
icon?: string | null;
|
|
29
|
+
color?: string | null;
|
|
30
|
+
displayOrder: number;
|
|
31
|
+
usageCount: number;
|
|
32
|
+
lastUsedAt?: string | null;
|
|
33
|
+
context?: OperationContext | null;
|
|
34
|
+
createdAt: string;
|
|
35
|
+
updatedAt: string;
|
|
36
|
+
deletedAt?: string | null;
|
|
37
|
+
}
|
|
38
|
+
interface TagList {
|
|
39
|
+
items: UniversalTag[];
|
|
40
|
+
total: number;
|
|
41
|
+
hasMore: boolean;
|
|
42
|
+
nextCursor?: string | null;
|
|
43
|
+
}
|
|
44
|
+
interface TagFilterInput {
|
|
45
|
+
vocabularyId?: string;
|
|
46
|
+
scope?: TagScope;
|
|
47
|
+
tenantId?: string;
|
|
48
|
+
workspaceId?: string;
|
|
49
|
+
parentId?: string;
|
|
50
|
+
key?: string;
|
|
51
|
+
label?: string;
|
|
52
|
+
search?: string;
|
|
53
|
+
hasParent?: boolean;
|
|
54
|
+
createdBy?: string;
|
|
55
|
+
context?: ContextInput;
|
|
56
|
+
}
|
|
57
|
+
interface CreateTagInput {
|
|
58
|
+
vocabularyId: string;
|
|
59
|
+
key: string;
|
|
60
|
+
label: string;
|
|
61
|
+
description?: string;
|
|
62
|
+
parentId?: string;
|
|
63
|
+
value?: string;
|
|
64
|
+
icon?: string;
|
|
65
|
+
color?: string;
|
|
66
|
+
displayOrder?: number;
|
|
67
|
+
scope?: TagScope;
|
|
68
|
+
context?: ContextInput;
|
|
69
|
+
}
|
|
70
|
+
interface UpdateTagInput {
|
|
71
|
+
label?: string;
|
|
72
|
+
description?: string;
|
|
73
|
+
parentId?: string;
|
|
74
|
+
value?: string;
|
|
75
|
+
icon?: string;
|
|
76
|
+
color?: string;
|
|
77
|
+
displayOrder?: number;
|
|
78
|
+
context?: ContextInput;
|
|
79
|
+
}
|
|
80
|
+
interface TagEntityTypeCount {
|
|
81
|
+
entityType: string;
|
|
82
|
+
count: number;
|
|
83
|
+
}
|
|
84
|
+
interface TagActivityItem {
|
|
85
|
+
action: string;
|
|
86
|
+
entityType: string;
|
|
87
|
+
entityId: string;
|
|
88
|
+
performedById: string;
|
|
89
|
+
timestamp: string;
|
|
90
|
+
}
|
|
91
|
+
interface TagUsageStats {
|
|
92
|
+
totalAssignments: number;
|
|
93
|
+
activeAssignments: number;
|
|
94
|
+
uniqueEntities: number;
|
|
95
|
+
topEntityTypes: TagEntityTypeCount[];
|
|
96
|
+
recentActivity: TagActivityItem[];
|
|
97
|
+
}
|
|
98
|
+
interface TagPermission {
|
|
99
|
+
id: string;
|
|
100
|
+
tagId: string;
|
|
101
|
+
actorId: string;
|
|
102
|
+
actorType: string;
|
|
103
|
+
action: string;
|
|
104
|
+
grantedAt: string;
|
|
105
|
+
grantedBy: string;
|
|
106
|
+
}
|
|
107
|
+
interface GrantTagPermissionInput {
|
|
108
|
+
tagId: string;
|
|
109
|
+
actorId: string;
|
|
110
|
+
actorType: string;
|
|
111
|
+
action: string;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
interface TagsPermissionsApi {
|
|
115
|
+
list(tagId: string): Promise<TagPermission[]>;
|
|
116
|
+
grant(input: GrantTagPermissionInput): Promise<TagPermission>;
|
|
117
|
+
revoke(permissionId: string): Promise<boolean>;
|
|
118
|
+
}
|
|
119
|
+
interface TagsApi {
|
|
120
|
+
list(filter?: TagFilterInput, pagination?: PaginationInput): Promise<TagList>;
|
|
121
|
+
get(id: string): Promise<UniversalTag | null>;
|
|
122
|
+
create(input: CreateTagInput): Promise<UniversalTag>;
|
|
123
|
+
update(id: string, input: UpdateTagInput): Promise<UniversalTag>;
|
|
124
|
+
delete(id: string): Promise<boolean>;
|
|
125
|
+
analytics(tagId: string): Promise<TagUsageStats>;
|
|
126
|
+
permissions: TagsPermissionsApi;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
declare const tagsModule: SdkModule<TagsApi>;
|
|
130
|
+
|
|
131
|
+
export { type CreateTagInput, type GrantTagPermissionInput, type OperationContext, type TagActivityItem, type TagEntityTypeCount, type TagFilterInput, type TagList, type TagPermission, type TagScope, type TagUsageStats, type TagsApi, type TagsPermissionsApi, type UniversalTag, type UpdateTagInput, tagsModule as default };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
var s=`
|
|
2
|
+
fragment TagFields on UniversalTag {
|
|
3
|
+
id key label name slug description
|
|
4
|
+
vocabularyId scope tenantId workspaceId createdBy
|
|
5
|
+
parentId hierarchyPath hierarchyLevel
|
|
6
|
+
value icon color displayOrder
|
|
7
|
+
usageCount lastUsedAt
|
|
8
|
+
createdAt updatedAt deletedAt
|
|
9
|
+
}
|
|
10
|
+
`,g=`
|
|
11
|
+
${s}
|
|
12
|
+
query GetTags($filter: TagFilterInput, $pagination: TagsPaginationInput) {
|
|
13
|
+
getTags(filter: $filter, pagination: $pagination) {
|
|
14
|
+
items { ...TagFields }
|
|
15
|
+
total
|
|
16
|
+
hasMore
|
|
17
|
+
nextCursor
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
`,o=`
|
|
21
|
+
${s}
|
|
22
|
+
query GetTag($id: ID!) { getTag(id: $id) { ...TagFields } }
|
|
23
|
+
`,T=`
|
|
24
|
+
${s}
|
|
25
|
+
mutation CreateTag($input: CreateTagInput!) {
|
|
26
|
+
createTag(input: $input) { ...TagFields }
|
|
27
|
+
}
|
|
28
|
+
`,p=`
|
|
29
|
+
${s}
|
|
30
|
+
mutation UpdateTag($id: ID!, $input: UpdateTagInput!) {
|
|
31
|
+
updateTag(id: $id, input: $input) { ...TagFields }
|
|
32
|
+
}
|
|
33
|
+
`,d="mutation DeleteTag($id: ID!) { deleteTag(id: $id) }",u=`
|
|
34
|
+
query GetTagUsageStats($tagId: ID!) {
|
|
35
|
+
getTagUsageStats(tagId: $tagId) {
|
|
36
|
+
totalAssignments activeAssignments uniqueEntities
|
|
37
|
+
topEntityTypes { entityType count }
|
|
38
|
+
recentActivity { action entityType entityId performedById timestamp }
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
`,c=`
|
|
42
|
+
query GetTagPermissions($tagId: ID!) {
|
|
43
|
+
getTagPermissions(tagId: $tagId) {
|
|
44
|
+
id tagId actorId actorType action grantedAt grantedBy
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
`,m=`
|
|
48
|
+
mutation GrantTagPermission($input: GrantTagPermissionInput!) {
|
|
49
|
+
grantTagPermission(input: $input) {
|
|
50
|
+
id tagId actorId actorType action grantedAt grantedBy
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
`,l=`
|
|
54
|
+
mutation RevokeTagPermission($id: ID!) { revokeTagPermission(id: $id) }
|
|
55
|
+
`;function I(i){let{workspace:e}=i.gql;return {async list(t,a){return (await e.request(g,{filter:t,pagination:a})).getTags},async get(t){return (await e.request(o,{id:t})).getTag},async create(t){return (await e.request(T,{input:t})).createTag},async update(t,a){return (await e.request(p,{id:t,input:a})).updateTag},async delete(t){return (await e.request(d,{id:t})).deleteTag},async analytics(t){return (await e.request(u,{tagId:t})).getTagUsageStats},permissions:{async list(t){return (await e.request(c,{tagId:t})).getTagPermissions},async grant(t){return (await e.request(m,{input:t})).grantTagPermission},async revoke(t){return (await e.request(l,{id:t})).revokeTagPermission}}}}var P={id:"tags",version:"1.0.0",displayName:"Tags",dependsOn:["auth"],attach(i){return I(i)}},v=P;export{v as default};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
'use strict';var g=`
|
|
2
|
+
fragment TourFields on Tour {
|
|
3
|
+
id name slug description status isActive productId moduleId
|
|
4
|
+
priority displayOrder createdAt updatedAt
|
|
5
|
+
}
|
|
6
|
+
`,u=`
|
|
7
|
+
fragment TourProgressFields on UserTourProgress {
|
|
8
|
+
id tourId userId status currentStepId currentStepOrder
|
|
9
|
+
completedSteps skippedSteps startedAt completedAt lastViewedAt
|
|
10
|
+
}
|
|
11
|
+
`,a=`
|
|
12
|
+
${g}
|
|
13
|
+
query Tours($filters: TourFilters, $pagination: TourPagination) {
|
|
14
|
+
tours(filters: $filters, pagination: $pagination) {
|
|
15
|
+
tours { ...TourFields }
|
|
16
|
+
total
|
|
17
|
+
hasMore
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
`,T=`
|
|
21
|
+
${u}
|
|
22
|
+
query UserTourProgresses($userId: ID, $pagination: TourPagination) {
|
|
23
|
+
userTourProgresses(userId: $userId, pagination: $pagination) {
|
|
24
|
+
...TourProgressFields
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
`,n=`
|
|
28
|
+
${u}
|
|
29
|
+
mutation ResetTourProgress($tourId: ID!, $userId: ID!) {
|
|
30
|
+
resetTourProgress(tourId: $tourId, userId: $userId) { ...TourProgressFields }
|
|
31
|
+
}
|
|
32
|
+
`,p=`
|
|
33
|
+
${u}
|
|
34
|
+
mutation CompleteTourStep($tourId: ID!, $stepId: ID!) {
|
|
35
|
+
completeTourStep(tourId: $tourId, stepId: $stepId) { ...TourProgressFields }
|
|
36
|
+
}
|
|
37
|
+
`;function d(e){let{global:t}=e.gql;return {async list(r,o){return (await t.request(a,{filters:r,pagination:o})).tours},progress:{async get(r,o){return (await t.request(T,{userId:r,pagination:o})).userTourProgresses},async reset(r,o){return (await t.request(n,{tourId:r,userId:o})).resetTourProgress}},async complete(r,o){return (await t.request(p,{tourId:r,stepId:o})).completeTourStep}}}var P={id:"tours",version:"1.0.0",displayName:"Tours",dependsOn:["auth"],attach(e){return d(e)}},E=P;module.exports=E;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { S as SdkModule } from '../../module-JDbvil5h.cjs';
|
|
2
|
+
import 'graphql-request';
|
|
3
|
+
|
|
4
|
+
type TourStatus = 'PUBLISHED' | 'DRAFT' | 'ARCHIVED';
|
|
5
|
+
type TourProgressStatus = 'NOT_STARTED' | 'IN_PROGRESS' | 'COMPLETED' | 'SKIPPED' | 'PAUSED';
|
|
6
|
+
interface Tour {
|
|
7
|
+
id: string;
|
|
8
|
+
name: string;
|
|
9
|
+
slug: string;
|
|
10
|
+
description?: string | null;
|
|
11
|
+
status: TourStatus;
|
|
12
|
+
isActive: boolean;
|
|
13
|
+
productId?: string | null;
|
|
14
|
+
moduleId?: string | null;
|
|
15
|
+
priority?: number | null;
|
|
16
|
+
displayOrder?: number | null;
|
|
17
|
+
createdAt: string;
|
|
18
|
+
updatedAt: string;
|
|
19
|
+
}
|
|
20
|
+
interface TourList {
|
|
21
|
+
tours: Tour[];
|
|
22
|
+
total: number;
|
|
23
|
+
hasMore: boolean;
|
|
24
|
+
}
|
|
25
|
+
interface TourProgress {
|
|
26
|
+
id: string;
|
|
27
|
+
tourId: string;
|
|
28
|
+
userId: string;
|
|
29
|
+
status: TourProgressStatus;
|
|
30
|
+
currentStepId?: string | null;
|
|
31
|
+
currentStepOrder?: number | null;
|
|
32
|
+
completedSteps?: string[] | null;
|
|
33
|
+
skippedSteps?: string[] | null;
|
|
34
|
+
startedAt?: string | null;
|
|
35
|
+
completedAt?: string | null;
|
|
36
|
+
lastViewedAt?: string | null;
|
|
37
|
+
}
|
|
38
|
+
interface TourFilters {
|
|
39
|
+
status?: TourStatus;
|
|
40
|
+
productId?: string;
|
|
41
|
+
moduleId?: string;
|
|
42
|
+
isActive?: boolean;
|
|
43
|
+
}
|
|
44
|
+
interface TourPagination {
|
|
45
|
+
limit?: number;
|
|
46
|
+
offset?: number;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
interface ToursProgressApi {
|
|
50
|
+
get(userId?: string, pagination?: TourPagination): Promise<TourProgress[]>;
|
|
51
|
+
reset(tourId: string, userId: string): Promise<TourProgress>;
|
|
52
|
+
}
|
|
53
|
+
interface ToursApi {
|
|
54
|
+
list(filters?: TourFilters, pagination?: TourPagination): Promise<TourList>;
|
|
55
|
+
progress: ToursProgressApi;
|
|
56
|
+
complete(tourId: string, stepId: string): Promise<TourProgress>;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
declare const toursModule: SdkModule<ToursApi>;
|
|
60
|
+
|
|
61
|
+
export { type Tour, type TourFilters, type TourList, type TourPagination, type TourProgress, type TourProgressStatus, type TourStatus, type ToursApi, type ToursProgressApi, toursModule as default };
|