@appconda/nextjs 1.0.12 → 1.0.14

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 (122) hide show
  1. package/dist/cjs/sdk.js +2648 -0
  2. package/dist/cjs/sdk.js.map +1 -1
  3. package/dist/esm/sdk.js +2647 -1
  4. package/dist/esm/sdk.js.map +1 -1
  5. package/dist/iife/sdk.js +2648 -2
  6. package/package.json +2 -1
  7. package/src/getAppcondaClient.ts +44 -0
  8. package/src/getSDKForCurrentUser.ts +75 -0
  9. package/src/index.ts +2 -0
  10. package/src/services/waitlist.ts +16 -0
  11. package/types/Cache/Adapter.d.ts +0 -10
  12. package/types/Cache/Adapters/Filesystem.d.ts +0 -16
  13. package/types/Cache/Adapters/Memory.d.ts +0 -18
  14. package/types/Cache/Adapters/None.d.ts +0 -12
  15. package/types/Cache/Adapters/Redis.d.ts +0 -14
  16. package/types/Cache/Adapters/Sharding.d.ts +0 -17
  17. package/types/Cache/Cache.d.ts +0 -16
  18. package/types/Cache/index.d.ts +0 -5
  19. package/types/Cache/test.d.ts +0 -0
  20. package/types/Services.d.ts +0 -6
  21. package/types/client.d.ts +0 -141
  22. package/types/decorators/Cache.d.ts +0 -1
  23. package/types/decorators/CacheKey.d.ts +0 -1
  24. package/types/decorators/Invalidate.d.ts +0 -1
  25. package/types/enums/api-service.d.ts +0 -13
  26. package/types/enums/api.d.ts +0 -5
  27. package/types/enums/auth-method.d.ts +0 -9
  28. package/types/enums/authentication-factor.d.ts +0 -6
  29. package/types/enums/authenticator-type.d.ts +0 -3
  30. package/types/enums/browser.d.ts +0 -16
  31. package/types/enums/compression.d.ts +0 -5
  32. package/types/enums/credit-card.d.ts +0 -18
  33. package/types/enums/database-usage-range.d.ts +0 -5
  34. package/types/enums/email-template-locale.d.ts +0 -133
  35. package/types/enums/email-template-type.d.ts +0 -9
  36. package/types/enums/entities/EntityLimitType.d.ts +0 -4
  37. package/types/enums/entities/PropertyAttributeName.d.ts +0 -27
  38. package/types/enums/entities/PropertyCondition.d.ts +0 -7
  39. package/types/enums/entities/PropertyType.d.ts +0 -12
  40. package/types/enums/entities/PropertyValueType.d.ts +0 -6
  41. package/types/enums/entities/RowAccess.d.ts +0 -2
  42. package/types/enums/entities/ViewFilterCondition.d.ts +0 -12
  43. package/types/enums/execution-method.d.ts +0 -8
  44. package/types/enums/flag.d.ts +0 -197
  45. package/types/enums/function-usage-range.d.ts +0 -5
  46. package/types/enums/image-format.d.ts +0 -7
  47. package/types/enums/image-gravity.d.ts +0 -11
  48. package/types/enums/index-type.d.ts +0 -5
  49. package/types/enums/messaging-provider-type.d.ts +0 -5
  50. package/types/enums/name.d.ts +0 -14
  51. package/types/enums/o-auth-provider copy.d.ts +0 -41
  52. package/types/enums/o-auth-provider.d.ts +0 -41
  53. package/types/enums/password-hash.d.ts +0 -13
  54. package/types/enums/platform-type.d.ts +0 -17
  55. package/types/enums/project-usage-range.d.ts +0 -4
  56. package/types/enums/region.d.ts +0 -4
  57. package/types/enums/relation-mutate.d.ts +0 -5
  58. package/types/enums/relationship-type.d.ts +0 -6
  59. package/types/enums/resource-type.d.ts +0 -4
  60. package/types/enums/runtime.d.ts +0 -48
  61. package/types/enums/s-m-t-p-secure.d.ts +0 -3
  62. package/types/enums/shared/ApplicationLayout.d.ts +0 -4
  63. package/types/enums/shared/Colors.d.ts +0 -24
  64. package/types/enums/shared/InputType.d.ts +0 -6
  65. package/types/enums/shared/Periodicity.d.ts +0 -7
  66. package/types/enums/shared/SvgIcon.d.ts +0 -37
  67. package/types/enums/shared/Theme.d.ts +0 -4
  68. package/types/enums/sms-template-locale.d.ts +0 -133
  69. package/types/enums/sms-template-type.d.ts +0 -6
  70. package/types/enums/smtp-encryption.d.ts +0 -5
  71. package/types/enums/storage-usage-range.d.ts +0 -5
  72. package/types/enums/subscriptions/PricingModel.d.ts +0 -11
  73. package/types/enums/subscriptions/SubscriptionBillingPeriod.d.ts +0 -10
  74. package/types/enums/subscriptions/SubscriptionFeatureLimitType.d.ts +0 -10
  75. package/types/enums/subscriptions/SubscriptionPriceType.d.ts +0 -7
  76. package/types/enums/tenants/LinkedAccountStatus.d.ts +0 -5
  77. package/types/enums/tenants/TenantUserJoined.d.ts +0 -6
  78. package/types/enums/tenants/TenantUserStatus.d.ts +0 -6
  79. package/types/enums/tenants/TenantUserType.d.ts +0 -5
  80. package/types/enums/user-usage-range.d.ts +0 -5
  81. package/types/id.d.ts +0 -20
  82. package/types/index.d.ts +0 -36
  83. package/types/inputFile.d.ts +0 -6
  84. package/types/lib/Registry/Registry.d.ts +0 -38
  85. package/types/lib/Registry/index.d.ts +0 -1
  86. package/types/models.d.ts +0 -3272
  87. package/types/permission.d.ts +0 -43
  88. package/types/query.d.ts +0 -194
  89. package/types/role.d.ts +0 -70
  90. package/types/service-client.d.ts +0 -7
  91. package/types/service.d.ts +0 -11
  92. package/types/services/account.d.ts +0 -530
  93. package/types/services/acl.d.ts +0 -28
  94. package/types/services/applets.d.ts +0 -9
  95. package/types/services/assistant.d.ts +0 -14
  96. package/types/services/avatars.d.ts +0 -115
  97. package/types/services/community.d.ts +0 -19
  98. package/types/services/configuration.d.ts +0 -5
  99. package/types/services/console.d.ts +0 -15
  100. package/types/services/databases.d.ts +0 -613
  101. package/types/services/functions.d.ts +0 -319
  102. package/types/services/graphql.d.ts +0 -25
  103. package/types/services/health.d.ts +0 -231
  104. package/types/services/locale.d.ts +0 -80
  105. package/types/services/messaging.d.ts +0 -685
  106. package/types/services/migrations.d.ts +0 -185
  107. package/types/services/node.d.ts +0 -5
  108. package/types/services/permissions.d.ts +0 -20
  109. package/types/services/pricing.d.ts +0 -15
  110. package/types/services/project.d.ts +0 -70
  111. package/types/services/projects.d.ts +0 -542
  112. package/types/services/proxy.d.ts +0 -59
  113. package/types/services/roles.d.ts +0 -19
  114. package/types/services/schema.d.ts +0 -17
  115. package/types/services/storage.d.ts +0 -189
  116. package/types/services/subscription-product.d.ts +0 -77
  117. package/types/services/subscription.d.ts +0 -15
  118. package/types/services/teams.d.ts +0 -167
  119. package/types/services/tenant-subscription.d.ts +0 -12
  120. package/types/services/tenant.d.ts +0 -32
  121. package/types/services/users.d.ts +0 -499
  122. package/types/services/vcs.d.ts +0 -108
@@ -1,43 +0,0 @@
1
- /**
2
- * Helper class to generate permission strings for resources.
3
- */
4
- export declare class Permission {
5
- /**
6
- * Generate read permission string for the provided role.
7
- *
8
- * @param {string} role
9
- * @returns {string}
10
- */
11
- static read: (role: string) => string;
12
- /**
13
- * Generate write permission string for the provided role.
14
- *
15
- * This is an alias of update, delete, and possibly create.
16
- * Don't use write in combination with update, delete, or create.
17
- *
18
- * @param {string} role
19
- * @returns {string}
20
- */
21
- static write: (role: string) => string;
22
- /**
23
- * Generate create permission string for the provided role.
24
- *
25
- * @param {string} role
26
- * @returns {string}
27
- */
28
- static create: (role: string) => string;
29
- /**
30
- * Generate update permission string for the provided role.
31
- *
32
- * @param {string} role
33
- * @returns {string}
34
- */
35
- static update: (role: string) => string;
36
- /**
37
- * Generate delete permission string for the provided role.
38
- *
39
- * @param {string} role
40
- * @returns {string}
41
- */
42
- static delete: (role: string) => string;
43
- }
package/types/query.d.ts DELETED
@@ -1,194 +0,0 @@
1
- type QueryTypesSingle = string | number | boolean;
2
- export type QueryTypesList = string[] | number[] | boolean[] | Query[];
3
- export type QueryTypes = QueryTypesSingle | QueryTypesList;
4
- type AttributesTypes = string | string[];
5
- /**
6
- * Helper class to generate query strings.
7
- */
8
- export declare class Query {
9
- method: string;
10
- attribute: AttributesTypes | undefined;
11
- values: QueryTypesList | undefined;
12
- /**
13
- * Constructor for Query class.
14
- *
15
- * @param {string} method
16
- * @param {AttributesTypes} attribute
17
- * @param {QueryTypes} values
18
- */
19
- constructor(method: string, attribute?: AttributesTypes, values?: QueryTypes);
20
- /**
21
- * Convert the query object to a JSON string.
22
- *
23
- * @returns {string}
24
- */
25
- toString(): string;
26
- /**
27
- * Filter resources where attribute is equal to value.
28
- *
29
- * @param {string} attribute
30
- * @param {QueryTypes} value
31
- * @returns {string}
32
- */
33
- static equal: (attribute: string, value: QueryTypes) => string;
34
- /**
35
- * Filter resources where attribute is not equal to value.
36
- *
37
- * @param {string} attribute
38
- * @param {QueryTypes} value
39
- * @returns {string}
40
- */
41
- static notEqual: (attribute: string, value: QueryTypes) => string;
42
- /**
43
- * Filter resources where attribute is less than value.
44
- *
45
- * @param {string} attribute
46
- * @param {QueryTypes} value
47
- * @returns {string}
48
- */
49
- static lessThan: (attribute: string, value: QueryTypes) => string;
50
- /**
51
- * Filter resources where attribute is less than or equal to value.
52
- *
53
- * @param {string} attribute
54
- * @param {QueryTypes} value
55
- * @returns {string}
56
- */
57
- static lessThanEqual: (attribute: string, value: QueryTypes) => string;
58
- /**
59
- * Filter resources where attribute is greater than value.
60
- *
61
- * @param {string} attribute
62
- * @param {QueryTypes} value
63
- * @returns {string}
64
- */
65
- static greaterThan: (attribute: string, value: QueryTypes) => string;
66
- /**
67
- * Filter resources where attribute is greater than or equal to value.
68
- *
69
- * @param {string} attribute
70
- * @param {QueryTypes} value
71
- * @returns {string}
72
- */
73
- static greaterThanEqual: (attribute: string, value: QueryTypes) => string;
74
- /**
75
- * Filter resources where attribute is null.
76
- *
77
- * @param {string} attribute
78
- * @returns {string}
79
- */
80
- static isNull: (attribute: string) => string;
81
- /**
82
- * Filter resources where attribute is not null.
83
- *
84
- * @param {string} attribute
85
- * @returns {string}
86
- */
87
- static isNotNull: (attribute: string) => string;
88
- /**
89
- * Filter resources where attribute is between start and end (inclusive).
90
- *
91
- * @param {string} attribute
92
- * @param {string | number} start
93
- * @param {string | number} end
94
- * @returns {string}
95
- */
96
- static between: (attribute: string, start: string | number, end: string | number) => string;
97
- /**
98
- * Filter resources where attribute starts with value.
99
- *
100
- * @param {string} attribute
101
- * @param {string} value
102
- * @returns {string}
103
- */
104
- static startsWith: (attribute: string, value: string) => string;
105
- /**
106
- * Filter resources where attribute ends with value.
107
- *
108
- * @param {string} attribute
109
- * @param {string} value
110
- * @returns {string}
111
- */
112
- static endsWith: (attribute: string, value: string) => string;
113
- /**
114
- * Specify which attributes should be returned by the API call.
115
- *
116
- * @param {string[]} attributes
117
- * @returns {string}
118
- */
119
- static select: (attributes: string[]) => string;
120
- /**
121
- * Filter resources by searching attribute for value.
122
- * A fulltext index on attribute is required for this query to work.
123
- *
124
- * @param {string} attribute
125
- * @param {string} value
126
- * @returns {string}
127
- */
128
- static search: (attribute: string, value: string) => string;
129
- /**
130
- * Sort results by attribute descending.
131
- *
132
- * @param {string} attribute
133
- * @returns {string}
134
- */
135
- static orderDesc: (attribute: string) => string;
136
- /**
137
- * Sort results by attribute ascending.
138
- *
139
- * @param {string} attribute
140
- * @returns {string}
141
- */
142
- static orderAsc: (attribute: string) => string;
143
- /**
144
- * Return results after documentId.
145
- *
146
- * @param {string} documentId
147
- * @returns {string}
148
- */
149
- static cursorAfter: (documentId: string) => string;
150
- /**
151
- * Return results before documentId.
152
- *
153
- * @param {string} documentId
154
- * @returns {string}
155
- */
156
- static cursorBefore: (documentId: string) => string;
157
- /**
158
- * Return only limit results.
159
- *
160
- * @param {number} limit
161
- * @returns {string}
162
- */
163
- static limit: (limit: number) => string;
164
- /**
165
- * Filter resources by skipping the first offset results.
166
- *
167
- * @param {number} offset
168
- * @returns {string}
169
- */
170
- static offset: (offset: number) => string;
171
- /**
172
- * Filter resources where attribute contains the specified value.
173
- *
174
- * @param {string} attribute
175
- * @param {string | string[]} value
176
- * @returns {string}
177
- */
178
- static contains: (attribute: string, value: string | string[]) => string;
179
- /**
180
- * Combine multiple queries using logical OR operator.
181
- *
182
- * @param {string[]} queries
183
- * @returns {string}
184
- */
185
- static or: (queries: string[]) => string;
186
- /**
187
- * Combine multiple queries using logical AND operator.
188
- *
189
- * @param {string[]} queries
190
- * @returns {string}
191
- */
192
- static and: (queries: string[]) => string;
193
- }
194
- export {};
package/types/role.d.ts DELETED
@@ -1,70 +0,0 @@
1
- /**
2
- * Helper class to generate role strings for `Permission`.
3
- */
4
- export declare class Role {
5
- /**
6
- * Grants access to anyone.
7
- *
8
- * This includes authenticated and unauthenticated users.
9
- *
10
- * @returns {string}
11
- */
12
- static any(): string;
13
- /**
14
- * Grants access to a specific user by user ID.
15
- *
16
- * You can optionally pass verified or unverified for
17
- * `status` to target specific types of users.
18
- *
19
- * @param {string} id
20
- * @param {string} status
21
- * @returns {string}
22
- */
23
- static user(id: string, status?: string): string;
24
- /**
25
- * Grants access to any authenticated or anonymous user.
26
- *
27
- * You can optionally pass verified or unverified for
28
- * `status` to target specific types of users.
29
- *
30
- * @param {string} status
31
- * @returns {string}
32
- */
33
- static users(status?: string): string;
34
- /**
35
- * Grants access to any guest user without a session.
36
- *
37
- * Authenticated users don't have access to this role.
38
- *
39
- * @returns {string}
40
- */
41
- static guests(): string;
42
- /**
43
- * Grants access to a team by team ID.
44
- *
45
- * You can optionally pass a role for `role` to target
46
- * team members with the specified role.
47
- *
48
- * @param {string} id
49
- * @param {string} role
50
- * @returns {string}
51
- */
52
- static team(id: string, role?: string): string;
53
- /**
54
- * Grants access to a specific member of a team.
55
- *
56
- * When the member is removed from the team, they will
57
- * no longer have access.
58
- *
59
- * @param {string} id
60
- * @returns {string}
61
- */
62
- static member(id: string): string;
63
- /**
64
- * Grants access to a user with the specified label.
65
- *
66
- * @param {string} name
67
- * @returns {string}
68
- */
69
- static label(name: string): string;
70
- }
@@ -1,7 +0,0 @@
1
- import { Client, Payload } from "./client";
2
- export declare abstract class ServiceClient {
3
- client: Client;
4
- constructor(client: Client);
5
- protected abstract getServiceName(): string;
6
- protected actionCall<T>(actionName: string, payload: Payload): Promise<T>;
7
- }
@@ -1,11 +0,0 @@
1
- import { Client } from './client';
2
- import type { Payload } from './client';
3
- export declare class Service {
4
- /**
5
- * The size for chunked uploads in bytes.
6
- */
7
- static CHUNK_SIZE: number;
8
- client: Client;
9
- constructor(client: Client);
10
- static flatten(data: Payload, prefix?: string): Payload;
11
- }