@raisfast/sdk 0.1.0 → 0.1.1

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.cjs CHANGED
@@ -21,27 +21,50 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
21
21
  var index_exports = {};
22
22
  __export(index_exports, {
23
23
  Admin: () => Admin,
24
+ ApiAccess: () => ApiAccess,
24
25
  Auth: () => Auth,
26
+ AuthType: () => AuthType,
25
27
  BaseAuthStore: () => BaseAuthStore,
26
28
  Cart: () => Cart,
27
29
  Categories: () => Categories,
28
30
  Collection: () => Collection,
31
+ CommentOpenStatus: () => CommentOpenStatus,
32
+ CommentStatus: () => CommentStatus,
29
33
  Comments: () => Comments,
34
+ ContentKind: () => ContentKind,
35
+ CronExecStatus: () => CronExecStatus,
30
36
  Events: () => Events,
37
+ FieldType: () => FieldType,
31
38
  Health: () => Health,
32
39
  HttpClient: () => HttpClient,
40
+ JobStatus: () => JobStatus,
33
41
  LocalAuthStore: () => LocalAuthStore,
34
42
  Media: () => Media,
43
+ OptionType: () => OptionType,
35
44
  Orders: () => Orders,
45
+ PageStatus: () => PageStatus,
36
46
  Pages: () => Pages,
37
47
  Payment: () => Payment,
48
+ PostStatus: () => PostStatus,
38
49
  Posts: () => Posts,
39
50
  Products: () => Products,
40
51
  RaisFast: () => RaisFast,
52
+ RegisteredVia: () => RegisteredVia,
53
+ RelationType: () => RelationType,
41
54
  SDKError: () => SDKError,
55
+ StepType: () => StepType,
42
56
  Tags: () => Tags,
57
+ TenantStatus: () => TenantStatus,
58
+ UserRole: () => UserRole,
59
+ UserStatus: () => UserStatus,
43
60
  Users: () => Users,
44
- Wallets: () => Wallets
61
+ WalletEntryType: () => WalletEntryType,
62
+ WalletReferenceType: () => WalletReferenceType,
63
+ WalletStatus: () => WalletStatus,
64
+ WalletTxType: () => WalletTxType,
65
+ Wallets: () => Wallets,
66
+ WorkflowInstanceStatus: () => WorkflowInstanceStatus,
67
+ WorkflowStepStatus: () => WorkflowStepStatus
45
68
  });
46
69
  module.exports = __toCommonJS(index_exports);
47
70
 
@@ -1429,8 +1452,8 @@ var AdminPosts = class {
1429
1452
  query: toQueryString(query)
1430
1453
  });
1431
1454
  }
1432
- async get(slug, options) {
1433
- return this.http.get(`/admin/posts/${slug}`, options);
1455
+ async get(id, options) {
1456
+ return this.http.get(`/admin/posts/${id}`, options);
1434
1457
  }
1435
1458
  async create(body, options) {
1436
1459
  return this.http.request(this.http.pathForCreate("/admin/posts"), {
@@ -2099,29 +2122,198 @@ var RaisFast = class {
2099
2122
  return `${base}/feed.xml`;
2100
2123
  }
2101
2124
  };
2125
+
2126
+ // src/generated/types.ts
2127
+ var ApiAccess = {
2128
+ none: "none",
2129
+ public: "public",
2130
+ member: "member",
2131
+ admin: "admin"
2132
+ };
2133
+ var AuthType = {
2134
+ email: "email",
2135
+ phone: "phone",
2136
+ oauth: "oauth"
2137
+ };
2138
+ var CommentOpenStatus = {
2139
+ open: "open",
2140
+ closed: "closed"
2141
+ };
2142
+ var CommentStatus = {
2143
+ pending: "pending",
2144
+ approved: "approved",
2145
+ spam: "spam"
2146
+ };
2147
+ var ContentKind = {
2148
+ collection: "collection",
2149
+ single: "single"
2150
+ };
2151
+ var CronExecStatus = {
2152
+ running: "running",
2153
+ completed: "completed",
2154
+ failed: "failed"
2155
+ };
2156
+ var FieldType = {
2157
+ text: "text",
2158
+ rich_text: "rich_text",
2159
+ integer: "integer",
2160
+ big_int: "big_int",
2161
+ decimal: "decimal",
2162
+ float: "float",
2163
+ boolean: "boolean",
2164
+ date: "date",
2165
+ date_time: "date_time",
2166
+ time: "time",
2167
+ email: "email",
2168
+ password: "password",
2169
+ enum: "enum",
2170
+ uid: "uid",
2171
+ json: "json",
2172
+ media: "media",
2173
+ relation: "relation"
2174
+ };
2175
+ var JobStatus = {
2176
+ pending: "pending",
2177
+ running: "running",
2178
+ completed: "completed",
2179
+ failed: "failed",
2180
+ dead: "dead"
2181
+ };
2182
+ var OptionType = {
2183
+ text: "text",
2184
+ url: "url",
2185
+ email: "email",
2186
+ select: "select",
2187
+ integer: "integer",
2188
+ boolean: "boolean"
2189
+ };
2190
+ var PageStatus = {
2191
+ draft: "draft",
2192
+ published: "published"
2193
+ };
2194
+ var PostStatus = {
2195
+ draft: "draft",
2196
+ published: "published"
2197
+ };
2198
+ var RegisteredVia = {
2199
+ email: "email",
2200
+ phone: "phone",
2201
+ oauth: "oauth"
2202
+ };
2203
+ var RelationType = {
2204
+ one_to_one: "one_to_one",
2205
+ one_to_many: "one_to_many",
2206
+ many_to_one: "many_to_one",
2207
+ many_to_many: "many_to_many",
2208
+ one_way: "one_way",
2209
+ many_way: "many_way"
2210
+ };
2211
+ var StepType = {
2212
+ task: "task",
2213
+ await: "await",
2214
+ branch: "branch",
2215
+ parallel: "parallel",
2216
+ delay: "delay"
2217
+ };
2218
+ var TenantStatus = {
2219
+ active: "active",
2220
+ inactive: "inactive"
2221
+ };
2222
+ var UserRole = {
2223
+ admin: "admin",
2224
+ editor: "editor",
2225
+ author: "author",
2226
+ reader: "reader"
2227
+ };
2228
+ var UserStatus = {
2229
+ active: "active",
2230
+ suspended: "suspended",
2231
+ banned: "banned"
2232
+ };
2233
+ var WalletEntryType = {
2234
+ credit: "credit",
2235
+ debit: "debit"
2236
+ };
2237
+ var WalletReferenceType = {
2238
+ admin: "admin",
2239
+ checkin: "checkin",
2240
+ order_reward: "order_reward",
2241
+ api_usage: "api_usage",
2242
+ points_mall: "points_mall",
2243
+ order: "order",
2244
+ expiry: "expiry",
2245
+ payment: "payment",
2246
+ payment_refund: "payment_refund"
2247
+ };
2248
+ var WalletStatus = {
2249
+ active: "active",
2250
+ frozen: "frozen"
2251
+ };
2252
+ var WalletTxType = {
2253
+ recharge: "recharge",
2254
+ payment: "payment",
2255
+ refund: "refund",
2256
+ transfer_out: "transfer_out",
2257
+ transfer_in: "transfer_in"
2258
+ };
2259
+ var WorkflowInstanceStatus = {
2260
+ running: "running",
2261
+ completed: "completed",
2262
+ failed: "failed",
2263
+ cancelled: "cancelled",
2264
+ paused: "paused"
2265
+ };
2266
+ var WorkflowStepStatus = {
2267
+ running: "running",
2268
+ completed: "completed",
2269
+ failed: "failed"
2270
+ };
2102
2271
  // Annotate the CommonJS export names for ESM import in node:
2103
2272
  0 && (module.exports = {
2104
2273
  Admin,
2274
+ ApiAccess,
2105
2275
  Auth,
2276
+ AuthType,
2106
2277
  BaseAuthStore,
2107
2278
  Cart,
2108
2279
  Categories,
2109
2280
  Collection,
2281
+ CommentOpenStatus,
2282
+ CommentStatus,
2110
2283
  Comments,
2284
+ ContentKind,
2285
+ CronExecStatus,
2111
2286
  Events,
2287
+ FieldType,
2112
2288
  Health,
2113
2289
  HttpClient,
2290
+ JobStatus,
2114
2291
  LocalAuthStore,
2115
2292
  Media,
2293
+ OptionType,
2116
2294
  Orders,
2295
+ PageStatus,
2117
2296
  Pages,
2118
2297
  Payment,
2298
+ PostStatus,
2119
2299
  Posts,
2120
2300
  Products,
2121
2301
  RaisFast,
2302
+ RegisteredVia,
2303
+ RelationType,
2122
2304
  SDKError,
2305
+ StepType,
2123
2306
  Tags,
2307
+ TenantStatus,
2308
+ UserRole,
2309
+ UserStatus,
2124
2310
  Users,
2125
- Wallets
2311
+ WalletEntryType,
2312
+ WalletReferenceType,
2313
+ WalletStatus,
2314
+ WalletTxType,
2315
+ Wallets,
2316
+ WorkflowInstanceStatus,
2317
+ WorkflowStepStatus
2126
2318
  });
2127
2319
  //# sourceMappingURL=index.cjs.map