@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 +196 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +172 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -5,11 +5,14 @@ type AdminCommentListQuery = {
|
|
|
5
5
|
};
|
|
6
6
|
type AdminCommentRow = {
|
|
7
7
|
id: string;
|
|
8
|
+
post_id: string;
|
|
8
9
|
post_title: string;
|
|
9
10
|
nickname: string | null;
|
|
10
11
|
email: string | null;
|
|
11
12
|
content: string;
|
|
12
13
|
status: CommentStatus;
|
|
14
|
+
created_by: string | null;
|
|
15
|
+
parent_id: string | null;
|
|
13
16
|
created_at: string;
|
|
14
17
|
};
|
|
15
18
|
type AdminPageListQuery = {
|
|
@@ -1954,7 +1957,7 @@ declare class AdminPosts {
|
|
|
1954
1957
|
page_size?: number;
|
|
1955
1958
|
status?: PostStatus;
|
|
1956
1959
|
}, options?: RequestOptions): Promise<PaginatedData<PostResponse>>;
|
|
1957
|
-
get(
|
|
1960
|
+
get(id: string, options?: RequestOptions): Promise<PostResponse>;
|
|
1958
1961
|
create(body: CreatePostBody, options?: RequestOptions): Promise<PostResponse>;
|
|
1959
1962
|
update(id: string, body: UpdatePostBody, options?: RequestOptions): Promise<PostResponse>;
|
|
1960
1963
|
delete(id: string, options?: RequestOptions): Promise<void>;
|
|
@@ -2076,6 +2079,7 @@ interface StatsOverview {
|
|
|
2076
2079
|
content_by_type: Record<string, number>;
|
|
2077
2080
|
recent_activity: {
|
|
2078
2081
|
type: string;
|
|
2082
|
+
id?: string;
|
|
2079
2083
|
title?: string;
|
|
2080
2084
|
slug?: string;
|
|
2081
2085
|
content?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -5,11 +5,14 @@ type AdminCommentListQuery = {
|
|
|
5
5
|
};
|
|
6
6
|
type AdminCommentRow = {
|
|
7
7
|
id: string;
|
|
8
|
+
post_id: string;
|
|
8
9
|
post_title: string;
|
|
9
10
|
nickname: string | null;
|
|
10
11
|
email: string | null;
|
|
11
12
|
content: string;
|
|
12
13
|
status: CommentStatus;
|
|
14
|
+
created_by: string | null;
|
|
15
|
+
parent_id: string | null;
|
|
13
16
|
created_at: string;
|
|
14
17
|
};
|
|
15
18
|
type AdminPageListQuery = {
|
|
@@ -1954,7 +1957,7 @@ declare class AdminPosts {
|
|
|
1954
1957
|
page_size?: number;
|
|
1955
1958
|
status?: PostStatus;
|
|
1956
1959
|
}, options?: RequestOptions): Promise<PaginatedData<PostResponse>>;
|
|
1957
|
-
get(
|
|
1960
|
+
get(id: string, options?: RequestOptions): Promise<PostResponse>;
|
|
1958
1961
|
create(body: CreatePostBody, options?: RequestOptions): Promise<PostResponse>;
|
|
1959
1962
|
update(id: string, body: UpdatePostBody, options?: RequestOptions): Promise<PostResponse>;
|
|
1960
1963
|
delete(id: string, options?: RequestOptions): Promise<void>;
|
|
@@ -2076,6 +2079,7 @@ interface StatsOverview {
|
|
|
2076
2079
|
content_by_type: Record<string, number>;
|
|
2077
2080
|
recent_activity: {
|
|
2078
2081
|
type: string;
|
|
2082
|
+
id?: string;
|
|
2079
2083
|
title?: string;
|
|
2080
2084
|
slug?: string;
|
|
2081
2085
|
content?: string;
|
package/dist/index.js
CHANGED
|
@@ -1382,8 +1382,8 @@ var AdminPosts = class {
|
|
|
1382
1382
|
query: toQueryString(query)
|
|
1383
1383
|
});
|
|
1384
1384
|
}
|
|
1385
|
-
async get(
|
|
1386
|
-
return this.http.get(`/admin/posts/${
|
|
1385
|
+
async get(id, options) {
|
|
1386
|
+
return this.http.get(`/admin/posts/${id}`, options);
|
|
1387
1387
|
}
|
|
1388
1388
|
async create(body, options) {
|
|
1389
1389
|
return this.http.request(this.http.pathForCreate("/admin/posts"), {
|
|
@@ -2052,28 +2052,197 @@ var RaisFast = class {
|
|
|
2052
2052
|
return `${base}/feed.xml`;
|
|
2053
2053
|
}
|
|
2054
2054
|
};
|
|
2055
|
+
|
|
2056
|
+
// src/generated/types.ts
|
|
2057
|
+
var ApiAccess = {
|
|
2058
|
+
none: "none",
|
|
2059
|
+
public: "public",
|
|
2060
|
+
member: "member",
|
|
2061
|
+
admin: "admin"
|
|
2062
|
+
};
|
|
2063
|
+
var AuthType = {
|
|
2064
|
+
email: "email",
|
|
2065
|
+
phone: "phone",
|
|
2066
|
+
oauth: "oauth"
|
|
2067
|
+
};
|
|
2068
|
+
var CommentOpenStatus = {
|
|
2069
|
+
open: "open",
|
|
2070
|
+
closed: "closed"
|
|
2071
|
+
};
|
|
2072
|
+
var CommentStatus = {
|
|
2073
|
+
pending: "pending",
|
|
2074
|
+
approved: "approved",
|
|
2075
|
+
spam: "spam"
|
|
2076
|
+
};
|
|
2077
|
+
var ContentKind = {
|
|
2078
|
+
collection: "collection",
|
|
2079
|
+
single: "single"
|
|
2080
|
+
};
|
|
2081
|
+
var CronExecStatus = {
|
|
2082
|
+
running: "running",
|
|
2083
|
+
completed: "completed",
|
|
2084
|
+
failed: "failed"
|
|
2085
|
+
};
|
|
2086
|
+
var FieldType = {
|
|
2087
|
+
text: "text",
|
|
2088
|
+
rich_text: "rich_text",
|
|
2089
|
+
integer: "integer",
|
|
2090
|
+
big_int: "big_int",
|
|
2091
|
+
decimal: "decimal",
|
|
2092
|
+
float: "float",
|
|
2093
|
+
boolean: "boolean",
|
|
2094
|
+
date: "date",
|
|
2095
|
+
date_time: "date_time",
|
|
2096
|
+
time: "time",
|
|
2097
|
+
email: "email",
|
|
2098
|
+
password: "password",
|
|
2099
|
+
enum: "enum",
|
|
2100
|
+
uid: "uid",
|
|
2101
|
+
json: "json",
|
|
2102
|
+
media: "media",
|
|
2103
|
+
relation: "relation"
|
|
2104
|
+
};
|
|
2105
|
+
var JobStatus = {
|
|
2106
|
+
pending: "pending",
|
|
2107
|
+
running: "running",
|
|
2108
|
+
completed: "completed",
|
|
2109
|
+
failed: "failed",
|
|
2110
|
+
dead: "dead"
|
|
2111
|
+
};
|
|
2112
|
+
var OptionType = {
|
|
2113
|
+
text: "text",
|
|
2114
|
+
url: "url",
|
|
2115
|
+
email: "email",
|
|
2116
|
+
select: "select",
|
|
2117
|
+
integer: "integer",
|
|
2118
|
+
boolean: "boolean"
|
|
2119
|
+
};
|
|
2120
|
+
var PageStatus = {
|
|
2121
|
+
draft: "draft",
|
|
2122
|
+
published: "published"
|
|
2123
|
+
};
|
|
2124
|
+
var PostStatus = {
|
|
2125
|
+
draft: "draft",
|
|
2126
|
+
published: "published"
|
|
2127
|
+
};
|
|
2128
|
+
var RegisteredVia = {
|
|
2129
|
+
email: "email",
|
|
2130
|
+
phone: "phone",
|
|
2131
|
+
oauth: "oauth"
|
|
2132
|
+
};
|
|
2133
|
+
var RelationType = {
|
|
2134
|
+
one_to_one: "one_to_one",
|
|
2135
|
+
one_to_many: "one_to_many",
|
|
2136
|
+
many_to_one: "many_to_one",
|
|
2137
|
+
many_to_many: "many_to_many",
|
|
2138
|
+
one_way: "one_way",
|
|
2139
|
+
many_way: "many_way"
|
|
2140
|
+
};
|
|
2141
|
+
var StepType = {
|
|
2142
|
+
task: "task",
|
|
2143
|
+
await: "await",
|
|
2144
|
+
branch: "branch",
|
|
2145
|
+
parallel: "parallel",
|
|
2146
|
+
delay: "delay"
|
|
2147
|
+
};
|
|
2148
|
+
var TenantStatus = {
|
|
2149
|
+
active: "active",
|
|
2150
|
+
inactive: "inactive"
|
|
2151
|
+
};
|
|
2152
|
+
var UserRole = {
|
|
2153
|
+
admin: "admin",
|
|
2154
|
+
editor: "editor",
|
|
2155
|
+
author: "author",
|
|
2156
|
+
reader: "reader"
|
|
2157
|
+
};
|
|
2158
|
+
var UserStatus = {
|
|
2159
|
+
active: "active",
|
|
2160
|
+
suspended: "suspended",
|
|
2161
|
+
banned: "banned"
|
|
2162
|
+
};
|
|
2163
|
+
var WalletEntryType = {
|
|
2164
|
+
credit: "credit",
|
|
2165
|
+
debit: "debit"
|
|
2166
|
+
};
|
|
2167
|
+
var WalletReferenceType = {
|
|
2168
|
+
admin: "admin",
|
|
2169
|
+
checkin: "checkin",
|
|
2170
|
+
order_reward: "order_reward",
|
|
2171
|
+
api_usage: "api_usage",
|
|
2172
|
+
points_mall: "points_mall",
|
|
2173
|
+
order: "order",
|
|
2174
|
+
expiry: "expiry",
|
|
2175
|
+
payment: "payment",
|
|
2176
|
+
payment_refund: "payment_refund"
|
|
2177
|
+
};
|
|
2178
|
+
var WalletStatus = {
|
|
2179
|
+
active: "active",
|
|
2180
|
+
frozen: "frozen"
|
|
2181
|
+
};
|
|
2182
|
+
var WalletTxType = {
|
|
2183
|
+
recharge: "recharge",
|
|
2184
|
+
payment: "payment",
|
|
2185
|
+
refund: "refund",
|
|
2186
|
+
transfer_out: "transfer_out",
|
|
2187
|
+
transfer_in: "transfer_in"
|
|
2188
|
+
};
|
|
2189
|
+
var WorkflowInstanceStatus = {
|
|
2190
|
+
running: "running",
|
|
2191
|
+
completed: "completed",
|
|
2192
|
+
failed: "failed",
|
|
2193
|
+
cancelled: "cancelled",
|
|
2194
|
+
paused: "paused"
|
|
2195
|
+
};
|
|
2196
|
+
var WorkflowStepStatus = {
|
|
2197
|
+
running: "running",
|
|
2198
|
+
completed: "completed",
|
|
2199
|
+
failed: "failed"
|
|
2200
|
+
};
|
|
2055
2201
|
export {
|
|
2056
2202
|
Admin,
|
|
2203
|
+
ApiAccess,
|
|
2057
2204
|
Auth,
|
|
2205
|
+
AuthType,
|
|
2058
2206
|
BaseAuthStore,
|
|
2059
2207
|
Cart,
|
|
2060
2208
|
Categories,
|
|
2061
2209
|
Collection,
|
|
2210
|
+
CommentOpenStatus,
|
|
2211
|
+
CommentStatus,
|
|
2062
2212
|
Comments,
|
|
2213
|
+
ContentKind,
|
|
2214
|
+
CronExecStatus,
|
|
2063
2215
|
Events,
|
|
2216
|
+
FieldType,
|
|
2064
2217
|
Health,
|
|
2065
2218
|
HttpClient,
|
|
2219
|
+
JobStatus,
|
|
2066
2220
|
LocalAuthStore,
|
|
2067
2221
|
Media,
|
|
2222
|
+
OptionType,
|
|
2068
2223
|
Orders,
|
|
2224
|
+
PageStatus,
|
|
2069
2225
|
Pages,
|
|
2070
2226
|
Payment,
|
|
2227
|
+
PostStatus,
|
|
2071
2228
|
Posts,
|
|
2072
2229
|
Products,
|
|
2073
2230
|
RaisFast,
|
|
2231
|
+
RegisteredVia,
|
|
2232
|
+
RelationType,
|
|
2074
2233
|
SDKError,
|
|
2234
|
+
StepType,
|
|
2075
2235
|
Tags,
|
|
2236
|
+
TenantStatus,
|
|
2237
|
+
UserRole,
|
|
2238
|
+
UserStatus,
|
|
2076
2239
|
Users,
|
|
2077
|
-
|
|
2240
|
+
WalletEntryType,
|
|
2241
|
+
WalletReferenceType,
|
|
2242
|
+
WalletStatus,
|
|
2243
|
+
WalletTxType,
|
|
2244
|
+
Wallets,
|
|
2245
|
+
WorkflowInstanceStatus,
|
|
2246
|
+
WorkflowStepStatus
|
|
2078
2247
|
};
|
|
2079
2248
|
//# sourceMappingURL=index.js.map
|