@lessly/sdk-app 30.2.1 → 30.3.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.
Files changed (43) hide show
  1. package/dist/analytics/index.d.cts +1 -1
  2. package/dist/analytics/index.d.ts +1 -1
  3. package/dist/brain/index.d.cts +1 -1
  4. package/dist/brain/index.d.ts +1 -1
  5. package/dist/{client.gen-QlwjPsPF.d.cts → client.gen-BsUBUFNz.d.cts} +1506 -1
  6. package/dist/{client.gen-QlwjPsPF.d.ts → client.gen-BsUBUFNz.d.ts} +1506 -1
  7. package/dist/consent/index.d.cts +1 -1
  8. package/dist/consent/index.d.ts +1 -1
  9. package/dist/deployment/index.d.cts +1 -1
  10. package/dist/deployment/index.d.ts +1 -1
  11. package/dist/index.cjs +430 -0
  12. package/dist/index.cjs.map +1 -1
  13. package/dist/index.d.cts +1 -1
  14. package/dist/index.d.ts +1 -1
  15. package/dist/index.js +430 -0
  16. package/dist/index.js.map +1 -1
  17. package/dist/mail/index.d.cts +2 -2
  18. package/dist/mail/index.d.ts +2 -2
  19. package/dist/organization/index.d.cts +1 -1
  20. package/dist/organization/index.d.ts +1 -1
  21. package/dist/playground/index.d.cts +1 -1
  22. package/dist/playground/index.d.ts +1 -1
  23. package/dist/realtime/index.d.cts +1 -1
  24. package/dist/realtime/index.d.ts +1 -1
  25. package/dist/support/index.cjs +106 -0
  26. package/dist/support/index.cjs.map +1 -0
  27. package/dist/support/index.d.cts +84 -0
  28. package/dist/support/index.d.ts +84 -0
  29. package/dist/support/index.js +85 -0
  30. package/dist/support/index.js.map +1 -0
  31. package/dist/tracking/index.d.cts +1 -1
  32. package/dist/tracking/index.d.ts +1 -1
  33. package/dist/users/index.d.cts +1 -1
  34. package/dist/users/index.d.ts +1 -1
  35. package/dist/waitlist/index.d.cts +1 -1
  36. package/dist/waitlist/index.d.ts +1 -1
  37. package/package.json +7 -2
  38. package/src/gen/bindings.gen.ts +430 -0
  39. package/src/gen/client.gen.ts +76 -0
  40. package/src/gen/manifest.gen.ts +1 -1
  41. package/src/gen/support/index.ts +3 -0
  42. package/src/gen/support/queryOptions.gen.ts +131 -0
  43. package/src/gen/types.gen.ts +1510 -0
@@ -0,0 +1,131 @@
1
+ // AUTOGENERATED by scripts/generate.ts — do not edit.
2
+ import type { GeneratedClient } from '../client.gen';
3
+ import type {
4
+ SupportAgentCreateInput,
5
+ SupportAgentGetInput,
6
+ SupportAgentGetOutput,
7
+ SupportAgentListInput,
8
+ SupportAgentListOutput,
9
+ SupportAgentUpdateInput,
10
+ SupportAttachmentCreateInput,
11
+ SupportAttachmentFinalizeInput,
12
+ SupportLabelCreateInput,
13
+ SupportLabelListInput,
14
+ SupportLabelListOutput,
15
+ SupportMessageCreateInput,
16
+ SupportMessageListInput,
17
+ SupportMessageListOutput,
18
+ SupportStatusArchiveInput,
19
+ SupportStatusCreateInput,
20
+ SupportStatusListInput,
21
+ SupportStatusListOutput,
22
+ SupportStatusUpdateInput,
23
+ SupportThreadAssignInput,
24
+ SupportThreadCreateInput,
25
+ SupportThreadGetInput,
26
+ SupportThreadGetOutput,
27
+ SupportThreadListInput,
28
+ SupportThreadListOutput,
29
+ SupportThreadStatusSetInput,
30
+ SupportThreadUpdateInput,
31
+ } from '../types.gen';
32
+
33
+ export const supportAgentCreateMutationOptions = (sdk: GeneratedClient) => ({
34
+ mutationKey: ['support', 'agent', 'create'],
35
+ mutationFn: (input: SupportAgentCreateInput) => sdk['support']['agent']['create'](input),
36
+ });
37
+
38
+ export const supportAgentGetQueryOptions = (sdk: GeneratedClient, input: SupportAgentGetInput) => ({
39
+ queryKey: ['support', 'agent', 'get', input] as const,
40
+ queryFn: () => sdk['support']['agent']['get'](input),
41
+ });
42
+
43
+ export const supportAgentListQueryOptions = (sdk: GeneratedClient, input: SupportAgentListInput) => ({
44
+ queryKey: ['support', 'agent', 'list', input] as const,
45
+ queryFn: () => sdk['support']['agent']['list'](input),
46
+ });
47
+
48
+ export const supportAgentUpdateMutationOptions = (sdk: GeneratedClient) => ({
49
+ mutationKey: ['support', 'agent', 'update'],
50
+ mutationFn: (input: SupportAgentUpdateInput) => sdk['support']['agent']['update'](input),
51
+ });
52
+
53
+ export const supportAttachmentCreateMutationOptions = (sdk: GeneratedClient) => ({
54
+ mutationKey: ['support', 'attachment', 'create'],
55
+ mutationFn: (input: SupportAttachmentCreateInput) => sdk['support']['attachment']['create'](input),
56
+ });
57
+
58
+ export const supportAttachmentFinalizeMutationOptions = (sdk: GeneratedClient) => ({
59
+ mutationKey: ['support', 'attachment', 'finalize'],
60
+ mutationFn: (input: SupportAttachmentFinalizeInput) => sdk['support']['attachment']['finalize'](input),
61
+ });
62
+
63
+ export const supportLabelCreateMutationOptions = (sdk: GeneratedClient) => ({
64
+ mutationKey: ['support', 'label', 'create'],
65
+ mutationFn: (input: SupportLabelCreateInput) => sdk['support']['label']['create'](input),
66
+ });
67
+
68
+ export const supportLabelListQueryOptions = (sdk: GeneratedClient, input: SupportLabelListInput) => ({
69
+ queryKey: ['support', 'label', 'list', input] as const,
70
+ queryFn: () => sdk['support']['label']['list'](input),
71
+ });
72
+
73
+ export const supportMessageCreateMutationOptions = (sdk: GeneratedClient) => ({
74
+ mutationKey: ['support', 'message', 'create'],
75
+ mutationFn: (input: SupportMessageCreateInput) => sdk['support']['message']['create'](input),
76
+ });
77
+
78
+ export const supportMessageListQueryOptions = (sdk: GeneratedClient, input: SupportMessageListInput) => ({
79
+ queryKey: ['support', 'message', 'list', input] as const,
80
+ queryFn: () => sdk['support']['message']['list'](input),
81
+ });
82
+
83
+ export const supportStatusArchiveMutationOptions = (sdk: GeneratedClient) => ({
84
+ mutationKey: ['support', 'status', 'archive'],
85
+ mutationFn: (input: SupportStatusArchiveInput) => sdk['support']['status']['archive'](input),
86
+ });
87
+
88
+ export const supportStatusCreateMutationOptions = (sdk: GeneratedClient) => ({
89
+ mutationKey: ['support', 'status', 'create'],
90
+ mutationFn: (input: SupportStatusCreateInput) => sdk['support']['status']['create'](input),
91
+ });
92
+
93
+ export const supportStatusListQueryOptions = (sdk: GeneratedClient, input: SupportStatusListInput) => ({
94
+ queryKey: ['support', 'status', 'list', input] as const,
95
+ queryFn: () => sdk['support']['status']['list'](input),
96
+ });
97
+
98
+ export const supportStatusUpdateMutationOptions = (sdk: GeneratedClient) => ({
99
+ mutationKey: ['support', 'status', 'update'],
100
+ mutationFn: (input: SupportStatusUpdateInput) => sdk['support']['status']['update'](input),
101
+ });
102
+
103
+ export const supportThreadAssignMutationOptions = (sdk: GeneratedClient) => ({
104
+ mutationKey: ['support', 'thread', 'assign'],
105
+ mutationFn: (input: SupportThreadAssignInput) => sdk['support']['thread']['assign'](input),
106
+ });
107
+
108
+ export const supportThreadCreateMutationOptions = (sdk: GeneratedClient) => ({
109
+ mutationKey: ['support', 'thread', 'create'],
110
+ mutationFn: (input: SupportThreadCreateInput) => sdk['support']['thread']['create'](input),
111
+ });
112
+
113
+ export const supportThreadGetQueryOptions = (sdk: GeneratedClient, input: SupportThreadGetInput) => ({
114
+ queryKey: ['support', 'thread', 'get', input] as const,
115
+ queryFn: () => sdk['support']['thread']['get'](input),
116
+ });
117
+
118
+ export const supportThreadListQueryOptions = (sdk: GeneratedClient, input: SupportThreadListInput) => ({
119
+ queryKey: ['support', 'thread', 'list', input] as const,
120
+ queryFn: () => sdk['support']['thread']['list'](input),
121
+ });
122
+
123
+ export const supportThreadStatusSetMutationOptions = (sdk: GeneratedClient) => ({
124
+ mutationKey: ['support', 'thread-status', 'set'],
125
+ mutationFn: (input: SupportThreadStatusSetInput) => sdk['support']['thread-status']['set'](input),
126
+ });
127
+
128
+ export const supportThreadUpdateMutationOptions = (sdk: GeneratedClient) => ({
129
+ mutationKey: ['support', 'thread', 'update'],
130
+ mutationFn: (input: SupportThreadUpdateInput) => sdk['support']['thread']['update'](input),
131
+ });