@usenotra/sdk 0.0.6 → 0.0.8
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/README.md +5 -1
- package/dist/commonjs/funcs/content-delete-post.d.ts +15 -0
- package/dist/commonjs/funcs/content-delete-post.d.ts.map +1 -0
- package/dist/commonjs/funcs/content-delete-post.js +122 -0
- package/dist/commonjs/funcs/content-delete-post.js.map +1 -0
- package/dist/commonjs/funcs/content-get-post.js +0 -5
- package/dist/commonjs/funcs/content-get-post.js.map +1 -1
- package/dist/commonjs/funcs/content-update-post.d.ts +15 -0
- package/dist/commonjs/funcs/content-update-post.d.ts.map +1 -0
- package/dist/commonjs/funcs/content-update-post.js +123 -0
- package/dist/commonjs/funcs/content-update-post.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/models/operations/delete-post.d.ts +23 -0
- package/dist/commonjs/models/operations/delete-post.d.ts.map +1 -0
- package/dist/commonjs/models/operations/delete-post.js +60 -0
- package/dist/commonjs/models/operations/delete-post.js.map +1 -0
- package/dist/commonjs/models/operations/get-post.d.ts +5 -65
- package/dist/commonjs/models/operations/get-post.d.ts.map +1 -1
- package/dist/commonjs/models/operations/get-post.js +4 -59
- package/dist/commonjs/models/operations/get-post.js.map +1 -1
- package/dist/commonjs/models/operations/index.d.ts +2 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +2 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/list-posts.d.ts +22 -22
- package/dist/commonjs/models/operations/list-posts.d.ts.map +1 -1
- package/dist/commonjs/models/operations/list-posts.js +25 -25
- package/dist/commonjs/models/operations/list-posts.js.map +1 -1
- package/dist/commonjs/models/operations/update-post.d.ts +69 -0
- package/dist/commonjs/models/operations/update-post.d.ts.map +1 -0
- package/dist/commonjs/models/operations/update-post.js +101 -0
- package/dist/commonjs/models/operations/update-post.js.map +1 -0
- package/dist/commonjs/sdk/content.d.ts +8 -0
- package/dist/commonjs/sdk/content.d.ts.map +1 -1
- package/dist/commonjs/sdk/content.js +14 -0
- package/dist/commonjs/sdk/content.js.map +1 -1
- package/dist/esm/funcs/content-delete-post.d.ts +15 -0
- package/dist/esm/funcs/content-delete-post.d.ts.map +1 -0
- package/dist/esm/funcs/content-delete-post.js +86 -0
- package/dist/esm/funcs/content-delete-post.js.map +1 -0
- package/dist/esm/funcs/content-get-post.js +1 -6
- package/dist/esm/funcs/content-get-post.js.map +1 -1
- package/dist/esm/funcs/content-update-post.d.ts +15 -0
- package/dist/esm/funcs/content-update-post.d.ts.map +1 -0
- package/dist/esm/funcs/content-update-post.js +87 -0
- package/dist/esm/funcs/content-update-post.js.map +1 -0
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/models/operations/delete-post.d.ts +23 -0
- package/dist/esm/models/operations/delete-post.d.ts.map +1 -0
- package/dist/esm/models/operations/delete-post.js +22 -0
- package/dist/esm/models/operations/delete-post.js.map +1 -0
- package/dist/esm/models/operations/get-post.d.ts +5 -65
- package/dist/esm/models/operations/get-post.d.ts.map +1 -1
- package/dist/esm/models/operations/get-post.js +3 -56
- package/dist/esm/models/operations/get-post.js.map +1 -1
- package/dist/esm/models/operations/index.d.ts +2 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +2 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/list-posts.d.ts +22 -22
- package/dist/esm/models/operations/list-posts.d.ts.map +1 -1
- package/dist/esm/models/operations/list-posts.js +22 -22
- package/dist/esm/models/operations/list-posts.js.map +1 -1
- package/dist/esm/models/operations/update-post.d.ts +69 -0
- package/dist/esm/models/operations/update-post.d.ts.map +1 -0
- package/dist/esm/models/operations/update-post.js +61 -0
- package/dist/esm/models/operations/update-post.js.map +1 -0
- package/dist/esm/sdk/content.d.ts +8 -0
- package/dist/esm/sdk/content.d.ts.map +1 -1
- package/dist/esm/sdk/content.js +14 -0
- package/dist/esm/sdk/content.js.map +1 -1
- package/package.json +1 -1
|
@@ -37,9 +37,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
37
37
|
};
|
|
38
38
|
})();
|
|
39
39
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
-
exports.GetPostResponse$inboundSchema = exports.GetPostPost$inboundSchema = exports.
|
|
41
|
-
exports.getPostStatusUnionToJSON = getPostStatusUnionToJSON;
|
|
42
|
-
exports.getPostContentTypeUnionToJSON = getPostContentTypeUnionToJSON;
|
|
40
|
+
exports.GetPostResponse$inboundSchema = exports.GetPostPost$inboundSchema = exports.GetPostStatus$inboundSchema = exports.GetPostRequest$outboundSchema = exports.GetPostStatus = void 0;
|
|
43
41
|
exports.getPostRequestToJSON = getPostRequestToJSON;
|
|
44
42
|
exports.getPostPostFromJSON = getPostPostFromJSON;
|
|
45
43
|
exports.getPostResponseFromJSON = getPostResponseFromJSON;
|
|
@@ -47,72 +45,19 @@ const z = __importStar(require("zod/v4-mini"));
|
|
|
47
45
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
48
46
|
const openEnums = __importStar(require("../../types/enums.js"));
|
|
49
47
|
const types = __importStar(require("../../types/primitives.js"));
|
|
50
|
-
|
|
51
|
-
exports.GetPostStatusQueryParamEnum2 = {
|
|
48
|
+
exports.GetPostStatus = {
|
|
52
49
|
Draft: "draft",
|
|
53
50
|
Published: "published",
|
|
54
51
|
};
|
|
55
|
-
exports.GetPostStatusQueryParamEnum1 = {
|
|
56
|
-
Draft: "draft",
|
|
57
|
-
Published: "published",
|
|
58
|
-
};
|
|
59
|
-
exports.GetPostContentTypeEnum2 = {
|
|
60
|
-
Changelog: "changelog",
|
|
61
|
-
LinkedinPost: "linkedin_post",
|
|
62
|
-
TwitterPost: "twitter_post",
|
|
63
|
-
BlogPost: "blog_post",
|
|
64
|
-
};
|
|
65
|
-
exports.GetPostContentTypeEnum1 = {
|
|
66
|
-
Changelog: "changelog",
|
|
67
|
-
LinkedinPost: "linkedin_post",
|
|
68
|
-
TwitterPost: "twitter_post",
|
|
69
|
-
BlogPost: "blog_post",
|
|
70
|
-
};
|
|
71
|
-
exports.GetPostStatusResponse = {
|
|
72
|
-
Draft: "draft",
|
|
73
|
-
Published: "published",
|
|
74
|
-
};
|
|
75
|
-
/** @internal */
|
|
76
|
-
exports.GetPostStatusQueryParamEnum2$outboundSchema = z.enum(exports.GetPostStatusQueryParamEnum2);
|
|
77
|
-
/** @internal */
|
|
78
|
-
exports.GetPostStatusQueryParamEnum1$outboundSchema = z.enum(exports.GetPostStatusQueryParamEnum1);
|
|
79
|
-
/** @internal */
|
|
80
|
-
exports.GetPostStatusUnion$outboundSchema = (0, smart_union_js_1.smartUnion)([
|
|
81
|
-
exports.GetPostStatusQueryParamEnum1$outboundSchema,
|
|
82
|
-
z.array(exports.GetPostStatusQueryParamEnum2$outboundSchema),
|
|
83
|
-
]);
|
|
84
|
-
function getPostStatusUnionToJSON(getPostStatusUnion) {
|
|
85
|
-
return JSON.stringify(exports.GetPostStatusUnion$outboundSchema.parse(getPostStatusUnion));
|
|
86
|
-
}
|
|
87
|
-
/** @internal */
|
|
88
|
-
exports.GetPostContentTypeEnum2$outboundSchema = z.enum(exports.GetPostContentTypeEnum2);
|
|
89
|
-
/** @internal */
|
|
90
|
-
exports.GetPostContentTypeEnum1$outboundSchema = z.enum(exports.GetPostContentTypeEnum1);
|
|
91
|
-
/** @internal */
|
|
92
|
-
exports.GetPostContentTypeUnion$outboundSchema = (0, smart_union_js_1.smartUnion)([
|
|
93
|
-
exports.GetPostContentTypeEnum1$outboundSchema,
|
|
94
|
-
z.array(exports.GetPostContentTypeEnum2$outboundSchema),
|
|
95
|
-
]);
|
|
96
|
-
function getPostContentTypeUnionToJSON(getPostContentTypeUnion) {
|
|
97
|
-
return JSON.stringify(exports.GetPostContentTypeUnion$outboundSchema.parse(getPostContentTypeUnion));
|
|
98
|
-
}
|
|
99
52
|
/** @internal */
|
|
100
53
|
exports.GetPostRequest$outboundSchema = z.object({
|
|
101
54
|
postId: z.string(),
|
|
102
|
-
status: z.optional((0, smart_union_js_1.smartUnion)([
|
|
103
|
-
exports.GetPostStatusQueryParamEnum1$outboundSchema,
|
|
104
|
-
z.array(exports.GetPostStatusQueryParamEnum2$outboundSchema),
|
|
105
|
-
])),
|
|
106
|
-
contentType: z.optional((0, smart_union_js_1.smartUnion)([
|
|
107
|
-
exports.GetPostContentTypeEnum1$outboundSchema,
|
|
108
|
-
z.array(exports.GetPostContentTypeEnum2$outboundSchema),
|
|
109
|
-
])),
|
|
110
55
|
});
|
|
111
56
|
function getPostRequestToJSON(getPostRequest) {
|
|
112
57
|
return JSON.stringify(exports.GetPostRequest$outboundSchema.parse(getPostRequest));
|
|
113
58
|
}
|
|
114
59
|
/** @internal */
|
|
115
|
-
exports.
|
|
60
|
+
exports.GetPostStatus$inboundSchema = openEnums.inboundSchema(exports.GetPostStatus);
|
|
116
61
|
/** @internal */
|
|
117
62
|
exports.GetPostPost$inboundSchema = z
|
|
118
63
|
.object({
|
|
@@ -123,7 +68,7 @@ exports.GetPostPost$inboundSchema = z
|
|
|
123
68
|
recommendations: types.nullable(types.string()),
|
|
124
69
|
contentType: types.string(),
|
|
125
70
|
sourceMetadata: types.optional(z.any()),
|
|
126
|
-
status: exports.
|
|
71
|
+
status: exports.GetPostStatus$inboundSchema,
|
|
127
72
|
createdAt: types.string(),
|
|
128
73
|
updatedAt: types.string(),
|
|
129
74
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-post.js","sourceRoot":"","sources":["../../../../src/models/operations/get-post.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"get-post.js","sourceRoot":"","sources":["../../../../src/models/operations/get-post.ts"],"names":[],"mappings":";AAAA;;;G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,CAAC,iCAAyB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACrD,yCAAyC,CAC1C,CAAC;AACJ,CAAC;AAED,gBAAgB;AACH,QAAA,6BAA6B,GAGtC,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,iCAAyB,CAAC,CAAC;CAC9D,CAAC,CAAC;AAEH,SAAgB,uBAAuB,CACrC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,qCAA6B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACzD,6CAA6C,CAC9C,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/index.ts"],"names":[],"mappings":"AAKA,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/index.ts"],"names":[],"mappings":"AAKA,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC"}
|
|
@@ -18,6 +18,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
18
18
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
19
19
|
};
|
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
__exportStar(require("./delete-post.js"), exports);
|
|
21
22
|
__exportStar(require("./get-post.js"), exports);
|
|
22
23
|
__exportStar(require("./list-posts.js"), exports);
|
|
24
|
+
__exportStar(require("./update-post.js"), exports);
|
|
23
25
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/operations/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;;;;;;;;;;;AAEH,gDAA8B;AAC9B,kDAAgC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/operations/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;;;;;;;;;;;AAEH,mDAAiC;AACjC,gDAA8B;AAC9B,kDAAgC;AAChC,mDAAiC"}
|
|
@@ -13,38 +13,38 @@ export declare const Sort: {
|
|
|
13
13
|
* Sort by creation date
|
|
14
14
|
*/
|
|
15
15
|
export type Sort = ClosedEnum<typeof Sort>;
|
|
16
|
-
export declare const
|
|
16
|
+
export declare const StatusQueryParamEnum2: {
|
|
17
17
|
readonly Draft: "draft";
|
|
18
18
|
readonly Published: "published";
|
|
19
19
|
};
|
|
20
|
-
export type
|
|
21
|
-
export declare const
|
|
20
|
+
export type StatusQueryParamEnum2 = ClosedEnum<typeof StatusQueryParamEnum2>;
|
|
21
|
+
export declare const StatusQueryParamEnum1: {
|
|
22
22
|
readonly Draft: "draft";
|
|
23
23
|
readonly Published: "published";
|
|
24
24
|
};
|
|
25
|
-
export type
|
|
25
|
+
export type StatusQueryParamEnum1 = ClosedEnum<typeof StatusQueryParamEnum1>;
|
|
26
26
|
/**
|
|
27
27
|
* Filter by status. Repeat the query param to pass multiple values.
|
|
28
28
|
*/
|
|
29
|
-
export type
|
|
30
|
-
export declare const
|
|
29
|
+
export type Status = StatusQueryParamEnum1 | Array<StatusQueryParamEnum2>;
|
|
30
|
+
export declare const ContentTypeEnum2: {
|
|
31
31
|
readonly Changelog: "changelog";
|
|
32
32
|
readonly LinkedinPost: "linkedin_post";
|
|
33
33
|
readonly TwitterPost: "twitter_post";
|
|
34
34
|
readonly BlogPost: "blog_post";
|
|
35
35
|
};
|
|
36
|
-
export type
|
|
37
|
-
export declare const
|
|
36
|
+
export type ContentTypeEnum2 = ClosedEnum<typeof ContentTypeEnum2>;
|
|
37
|
+
export declare const ContentTypeEnum1: {
|
|
38
38
|
readonly Changelog: "changelog";
|
|
39
39
|
readonly LinkedinPost: "linkedin_post";
|
|
40
40
|
readonly TwitterPost: "twitter_post";
|
|
41
41
|
readonly BlogPost: "blog_post";
|
|
42
42
|
};
|
|
43
|
-
export type
|
|
43
|
+
export type ContentTypeEnum1 = ClosedEnum<typeof ContentTypeEnum1>;
|
|
44
44
|
/**
|
|
45
45
|
* Filter by content type. Repeat the query param to pass multiple values.
|
|
46
46
|
*/
|
|
47
|
-
export type
|
|
47
|
+
export type ContentType = ContentTypeEnum1 | Array<ContentTypeEnum2>;
|
|
48
48
|
export type ListPostsRequest = {
|
|
49
49
|
/**
|
|
50
50
|
* Sort by creation date
|
|
@@ -61,11 +61,11 @@ export type ListPostsRequest = {
|
|
|
61
61
|
/**
|
|
62
62
|
* Filter by status. Repeat the query param to pass multiple values.
|
|
63
63
|
*/
|
|
64
|
-
status?:
|
|
64
|
+
status?: StatusQueryParamEnum1 | Array<StatusQueryParamEnum2> | undefined;
|
|
65
65
|
/**
|
|
66
66
|
* Filter by content type. Repeat the query param to pass multiple values.
|
|
67
67
|
*/
|
|
68
|
-
contentType?:
|
|
68
|
+
contentType?: ContentTypeEnum1 | Array<ContentTypeEnum2> | undefined;
|
|
69
69
|
};
|
|
70
70
|
export declare const ListPostsStatusResponse: {
|
|
71
71
|
readonly Draft: "draft";
|
|
@@ -102,23 +102,23 @@ export type ListPostsResponse = {
|
|
|
102
102
|
/** @internal */
|
|
103
103
|
export declare const Sort$outboundSchema: z.ZodMiniEnum<typeof Sort>;
|
|
104
104
|
/** @internal */
|
|
105
|
-
export declare const
|
|
105
|
+
export declare const StatusQueryParamEnum2$outboundSchema: z.ZodMiniEnum<typeof StatusQueryParamEnum2>;
|
|
106
106
|
/** @internal */
|
|
107
|
-
export declare const
|
|
107
|
+
export declare const StatusQueryParamEnum1$outboundSchema: z.ZodMiniEnum<typeof StatusQueryParamEnum1>;
|
|
108
108
|
/** @internal */
|
|
109
|
-
export type
|
|
109
|
+
export type Status$Outbound = string | Array<string>;
|
|
110
110
|
/** @internal */
|
|
111
|
-
export declare const
|
|
112
|
-
export declare function
|
|
111
|
+
export declare const Status$outboundSchema: z.ZodMiniType<Status$Outbound, Status>;
|
|
112
|
+
export declare function statusToJSON(status: Status): string;
|
|
113
113
|
/** @internal */
|
|
114
|
-
export declare const
|
|
114
|
+
export declare const ContentTypeEnum2$outboundSchema: z.ZodMiniEnum<typeof ContentTypeEnum2>;
|
|
115
115
|
/** @internal */
|
|
116
|
-
export declare const
|
|
116
|
+
export declare const ContentTypeEnum1$outboundSchema: z.ZodMiniEnum<typeof ContentTypeEnum1>;
|
|
117
117
|
/** @internal */
|
|
118
|
-
export type
|
|
118
|
+
export type ContentType$Outbound = string | Array<string>;
|
|
119
119
|
/** @internal */
|
|
120
|
-
export declare const
|
|
121
|
-
export declare function
|
|
120
|
+
export declare const ContentType$outboundSchema: z.ZodMiniType<ContentType$Outbound, ContentType>;
|
|
121
|
+
export declare function contentTypeToJSON(contentType: ContentType): string;
|
|
122
122
|
/** @internal */
|
|
123
123
|
export type ListPostsRequest$Outbound = {
|
|
124
124
|
sort: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-posts.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/list-posts.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAGjC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAG9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAEvE;;GAEG;AACH,eAAO,MAAM,IAAI;;;CAGP,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,IAAI,GAAG,UAAU,CAAC,OAA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S,CAAC;CAClD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,WAAW,CACzD,yBAAyB,EACzB,gBAAgB,CAiBhB,CAAC;AAEH,wBAAgB,sBAAsB,CACpC,gBAAgB,EAAE,gBAAgB,GACjC,MAAM,CAIR;AAED,gBAAgB;AAChB,eAAO,MAAM,qCAAqC,EAAE,CAAC,CAAC,WAAW,CAC/D,uBAAuB,EACvB,OAAO,CAC2C,CAAC;AAErD,gBAAgB;AAChB,eAAO,MAAM,2BAA2B,EAAE,CAAC,CAAC,WAAW,CACrD,aAAa,EACb,OAAO,CAYP,CAAC;AAEH,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,aAAa,EAAE,kBAAkB,CAAC,CAMpD;AAED,gBAAgB;AAChB,eAAO,MAAM,wBAAwB,EAAE,CAAC,CAAC,WAAW,CAAC,UAAU,EAAE,OAAO,CAQpE,CAAC;AAEL,wBAAgB,kBAAkB,CAChC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,UAAU,EAAE,kBAAkB,CAAC,CAMjD;AAED,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,WAAW,CACzD,iBAAiB,EACjB,OAAO,CAIP,CAAC;AAEH,wBAAgB,yBAAyB,CACvC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,iBAAiB,EAAE,kBAAkB,CAAC,CAMxD"}
|
|
@@ -37,9 +37,9 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
37
37
|
};
|
|
38
38
|
})();
|
|
39
39
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
-
exports.ListPostsResponse$inboundSchema = exports.Pagination$inboundSchema = exports.ListPostsPost$inboundSchema = exports.ListPostsStatusResponse$inboundSchema = exports.ListPostsRequest$outboundSchema = exports.
|
|
41
|
-
exports.
|
|
42
|
-
exports.
|
|
40
|
+
exports.ListPostsResponse$inboundSchema = exports.Pagination$inboundSchema = exports.ListPostsPost$inboundSchema = exports.ListPostsStatusResponse$inboundSchema = exports.ListPostsRequest$outboundSchema = exports.ContentType$outboundSchema = exports.ContentTypeEnum1$outboundSchema = exports.ContentTypeEnum2$outboundSchema = exports.Status$outboundSchema = exports.StatusQueryParamEnum1$outboundSchema = exports.StatusQueryParamEnum2$outboundSchema = exports.Sort$outboundSchema = exports.ListPostsStatusResponse = exports.ContentTypeEnum1 = exports.ContentTypeEnum2 = exports.StatusQueryParamEnum1 = exports.StatusQueryParamEnum2 = exports.Sort = void 0;
|
|
41
|
+
exports.statusToJSON = statusToJSON;
|
|
42
|
+
exports.contentTypeToJSON = contentTypeToJSON;
|
|
43
43
|
exports.listPostsRequestToJSON = listPostsRequestToJSON;
|
|
44
44
|
exports.listPostsPostFromJSON = listPostsPostFromJSON;
|
|
45
45
|
exports.paginationFromJSON = paginationFromJSON;
|
|
@@ -56,21 +56,21 @@ exports.Sort = {
|
|
|
56
56
|
Asc: "asc",
|
|
57
57
|
Desc: "desc",
|
|
58
58
|
};
|
|
59
|
-
exports.
|
|
59
|
+
exports.StatusQueryParamEnum2 = {
|
|
60
60
|
Draft: "draft",
|
|
61
61
|
Published: "published",
|
|
62
62
|
};
|
|
63
|
-
exports.
|
|
63
|
+
exports.StatusQueryParamEnum1 = {
|
|
64
64
|
Draft: "draft",
|
|
65
65
|
Published: "published",
|
|
66
66
|
};
|
|
67
|
-
exports.
|
|
67
|
+
exports.ContentTypeEnum2 = {
|
|
68
68
|
Changelog: "changelog",
|
|
69
69
|
LinkedinPost: "linkedin_post",
|
|
70
70
|
TwitterPost: "twitter_post",
|
|
71
71
|
BlogPost: "blog_post",
|
|
72
72
|
};
|
|
73
|
-
exports.
|
|
73
|
+
exports.ContentTypeEnum1 = {
|
|
74
74
|
Changelog: "changelog",
|
|
75
75
|
LinkedinPost: "linkedin_post",
|
|
76
76
|
TwitterPost: "twitter_post",
|
|
@@ -83,28 +83,28 @@ exports.ListPostsStatusResponse = {
|
|
|
83
83
|
/** @internal */
|
|
84
84
|
exports.Sort$outboundSchema = z.enum(exports.Sort);
|
|
85
85
|
/** @internal */
|
|
86
|
-
exports.
|
|
86
|
+
exports.StatusQueryParamEnum2$outboundSchema = z.enum(exports.StatusQueryParamEnum2);
|
|
87
87
|
/** @internal */
|
|
88
|
-
exports.
|
|
88
|
+
exports.StatusQueryParamEnum1$outboundSchema = z.enum(exports.StatusQueryParamEnum1);
|
|
89
89
|
/** @internal */
|
|
90
|
-
exports.
|
|
91
|
-
exports.
|
|
92
|
-
z.array(exports.
|
|
90
|
+
exports.Status$outboundSchema = (0, smart_union_js_1.smartUnion)([
|
|
91
|
+
exports.StatusQueryParamEnum1$outboundSchema,
|
|
92
|
+
z.array(exports.StatusQueryParamEnum2$outboundSchema),
|
|
93
93
|
]);
|
|
94
|
-
function
|
|
95
|
-
return JSON.stringify(exports.
|
|
94
|
+
function statusToJSON(status) {
|
|
95
|
+
return JSON.stringify(exports.Status$outboundSchema.parse(status));
|
|
96
96
|
}
|
|
97
97
|
/** @internal */
|
|
98
|
-
exports.
|
|
98
|
+
exports.ContentTypeEnum2$outboundSchema = z.enum(exports.ContentTypeEnum2);
|
|
99
99
|
/** @internal */
|
|
100
|
-
exports.
|
|
100
|
+
exports.ContentTypeEnum1$outboundSchema = z.enum(exports.ContentTypeEnum1);
|
|
101
101
|
/** @internal */
|
|
102
|
-
exports.
|
|
103
|
-
exports.
|
|
104
|
-
z.array(exports.
|
|
102
|
+
exports.ContentType$outboundSchema = (0, smart_union_js_1.smartUnion)([
|
|
103
|
+
exports.ContentTypeEnum1$outboundSchema,
|
|
104
|
+
z.array(exports.ContentTypeEnum2$outboundSchema),
|
|
105
105
|
]);
|
|
106
|
-
function
|
|
107
|
-
return JSON.stringify(exports.
|
|
106
|
+
function contentTypeToJSON(contentType) {
|
|
107
|
+
return JSON.stringify(exports.ContentType$outboundSchema.parse(contentType));
|
|
108
108
|
}
|
|
109
109
|
/** @internal */
|
|
110
110
|
exports.ListPostsRequest$outboundSchema = z.object({
|
|
@@ -112,12 +112,12 @@ exports.ListPostsRequest$outboundSchema = z.object({
|
|
|
112
112
|
limit: z._default(z.int(), 10),
|
|
113
113
|
page: z._default(z.int(), 1),
|
|
114
114
|
status: z.optional((0, smart_union_js_1.smartUnion)([
|
|
115
|
-
exports.
|
|
116
|
-
z.array(exports.
|
|
115
|
+
exports.StatusQueryParamEnum1$outboundSchema,
|
|
116
|
+
z.array(exports.StatusQueryParamEnum2$outboundSchema),
|
|
117
117
|
])),
|
|
118
118
|
contentType: z.optional((0, smart_union_js_1.smartUnion)([
|
|
119
|
-
exports.
|
|
120
|
-
z.array(exports.
|
|
119
|
+
exports.ContentTypeEnum1$outboundSchema,
|
|
120
|
+
z.array(exports.ContentTypeEnum2$outboundSchema),
|
|
121
121
|
])),
|
|
122
122
|
});
|
|
123
123
|
function listPostsRequestToJSON(listPostsRequest) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-posts.js","sourceRoot":"","sources":["../../../../src/models/operations/list-posts.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"list-posts.js","sourceRoot":"","sources":["../../../../src/models/operations/list-posts.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+IH,oCAEC;AAwBD,8CAEC;AAiCD,wDAMC;AAyBD,sDAQC;AAaD,gDAQC;AAWD,8DAQC;AAzRD,+CAAiC;AACjC,qDAAiD;AACjD,gEAAkD;AAGlD,iEAAmD;AACnD,+DAAwD;AAGxD;;GAEG;AACU,QAAA,IAAI,GAAG;IAClB,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;CACJ,CAAC;AAME,QAAA,qBAAqB,GAAG;IACnC,KAAK,EAAE,OAAO;IACd,SAAS,EAAE,WAAW;CACd,CAAC;AAGE,QAAA,qBAAqB,GA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AAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,mCAA2B,CAAC,CAAC;IACzD,UAAU,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,gCAAwB,CAAC;CACnD,CAAC,CAAC;AAEH,SAAgB,yBAAyB,CACvC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,uCAA+B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC3D,+CAA+C,CAChD,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import * as z from "zod/v4-mini";
|
|
2
|
+
import { ClosedEnum, OpenEnum } from "../../types/enums.js";
|
|
3
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
|
+
import { SDKValidationError } from "../errors/sdk-validation-error.js";
|
|
5
|
+
export declare const StatusRequest: {
|
|
6
|
+
readonly Draft: "draft";
|
|
7
|
+
readonly Published: "published";
|
|
8
|
+
};
|
|
9
|
+
export type StatusRequest = ClosedEnum<typeof StatusRequest>;
|
|
10
|
+
export type UpdatePostRequestBody = {
|
|
11
|
+
title?: string | undefined;
|
|
12
|
+
markdown?: string | undefined;
|
|
13
|
+
status?: StatusRequest | undefined;
|
|
14
|
+
};
|
|
15
|
+
export type UpdatePostRequest = {
|
|
16
|
+
postId: string;
|
|
17
|
+
body: UpdatePostRequestBody;
|
|
18
|
+
};
|
|
19
|
+
export declare const UpdatePostStatusResponse: {
|
|
20
|
+
readonly Draft: "draft";
|
|
21
|
+
readonly Published: "published";
|
|
22
|
+
};
|
|
23
|
+
export type UpdatePostStatusResponse = OpenEnum<typeof UpdatePostStatusResponse>;
|
|
24
|
+
export type UpdatePostPost = {
|
|
25
|
+
id: string;
|
|
26
|
+
title: string;
|
|
27
|
+
content: string;
|
|
28
|
+
markdown: string;
|
|
29
|
+
recommendations: string | null;
|
|
30
|
+
contentType: string;
|
|
31
|
+
sourceMetadata?: any | undefined;
|
|
32
|
+
status: UpdatePostStatusResponse;
|
|
33
|
+
createdAt: string;
|
|
34
|
+
updatedAt: string;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Post updated successfully
|
|
38
|
+
*/
|
|
39
|
+
export type UpdatePostResponse = {
|
|
40
|
+
post: UpdatePostPost;
|
|
41
|
+
};
|
|
42
|
+
/** @internal */
|
|
43
|
+
export declare const StatusRequest$outboundSchema: z.ZodMiniEnum<typeof StatusRequest>;
|
|
44
|
+
/** @internal */
|
|
45
|
+
export type UpdatePostRequestBody$Outbound = {
|
|
46
|
+
title?: string | undefined;
|
|
47
|
+
markdown?: string | undefined;
|
|
48
|
+
status?: string | undefined;
|
|
49
|
+
};
|
|
50
|
+
/** @internal */
|
|
51
|
+
export declare const UpdatePostRequestBody$outboundSchema: z.ZodMiniType<UpdatePostRequestBody$Outbound, UpdatePostRequestBody>;
|
|
52
|
+
export declare function updatePostRequestBodyToJSON(updatePostRequestBody: UpdatePostRequestBody): string;
|
|
53
|
+
/** @internal */
|
|
54
|
+
export type UpdatePostRequest$Outbound = {
|
|
55
|
+
postId: string;
|
|
56
|
+
body: UpdatePostRequestBody$Outbound;
|
|
57
|
+
};
|
|
58
|
+
/** @internal */
|
|
59
|
+
export declare const UpdatePostRequest$outboundSchema: z.ZodMiniType<UpdatePostRequest$Outbound, UpdatePostRequest>;
|
|
60
|
+
export declare function updatePostRequestToJSON(updatePostRequest: UpdatePostRequest): string;
|
|
61
|
+
/** @internal */
|
|
62
|
+
export declare const UpdatePostStatusResponse$inboundSchema: z.ZodMiniType<UpdatePostStatusResponse, unknown>;
|
|
63
|
+
/** @internal */
|
|
64
|
+
export declare const UpdatePostPost$inboundSchema: z.ZodMiniType<UpdatePostPost, unknown>;
|
|
65
|
+
export declare function updatePostPostFromJSON(jsonString: string): SafeParseResult<UpdatePostPost, SDKValidationError>;
|
|
66
|
+
/** @internal */
|
|
67
|
+
export declare const UpdatePostResponse$inboundSchema: z.ZodMiniType<UpdatePostResponse, unknown>;
|
|
68
|
+
export declare function updatePostResponseFromJSON(jsonString: string): SafeParseResult<UpdatePostResponse, SDKValidationError>;
|
|
69
|
+
//# sourceMappingURL=update-post.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-post.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/update-post.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAGjC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAEvE,eAAO,MAAM,aAAa;;;CAGhB,CAAC;AACX,MAAM,MAAM,aAAa,GAAG,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC;AAE7D,MAAM,MAAM,qBAAqB,GAAG;IAClC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,MAAM,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;CACpC,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,qBAAqB,CAAC;CAC7B,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;CAG3B,CAAC;AACX,MAAM,MAAM,wBAAwB,GAAG,QAAQ,CAC7C,OAAO,wBAAwB,CAChC,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,WAAW,EAAE,M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,CAAC;AAEH,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,cAAc,EAAE,kBAAkB,CAAC,CAMrD;AAED,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,WAAW,CAC1D,kBAAkB,EAClB,OAAO,CAGP,CAAC;AAEH,wBAAgB,0BAA0B,CACxC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,CAMzD"}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
* @generated-id: ca5a5edf4af7
|
|
5
|
+
*/
|
|
6
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
|
+
if (k2 === undefined) k2 = k;
|
|
8
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
9
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
10
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
11
|
+
}
|
|
12
|
+
Object.defineProperty(o, k2, desc);
|
|
13
|
+
}) : (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
o[k2] = m[k];
|
|
16
|
+
}));
|
|
17
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
18
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
19
|
+
}) : function(o, v) {
|
|
20
|
+
o["default"] = v;
|
|
21
|
+
});
|
|
22
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
23
|
+
var ownKeys = function(o) {
|
|
24
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
25
|
+
var ar = [];
|
|
26
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
27
|
+
return ar;
|
|
28
|
+
};
|
|
29
|
+
return ownKeys(o);
|
|
30
|
+
};
|
|
31
|
+
return function (mod) {
|
|
32
|
+
if (mod && mod.__esModule) return mod;
|
|
33
|
+
var result = {};
|
|
34
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
35
|
+
__setModuleDefault(result, mod);
|
|
36
|
+
return result;
|
|
37
|
+
};
|
|
38
|
+
})();
|
|
39
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
+
exports.UpdatePostResponse$inboundSchema = exports.UpdatePostPost$inboundSchema = exports.UpdatePostStatusResponse$inboundSchema = exports.UpdatePostRequest$outboundSchema = exports.UpdatePostRequestBody$outboundSchema = exports.StatusRequest$outboundSchema = exports.UpdatePostStatusResponse = exports.StatusRequest = void 0;
|
|
41
|
+
exports.updatePostRequestBodyToJSON = updatePostRequestBodyToJSON;
|
|
42
|
+
exports.updatePostRequestToJSON = updatePostRequestToJSON;
|
|
43
|
+
exports.updatePostPostFromJSON = updatePostPostFromJSON;
|
|
44
|
+
exports.updatePostResponseFromJSON = updatePostResponseFromJSON;
|
|
45
|
+
const z = __importStar(require("zod/v4-mini"));
|
|
46
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
47
|
+
const openEnums = __importStar(require("../../types/enums.js"));
|
|
48
|
+
const types = __importStar(require("../../types/primitives.js"));
|
|
49
|
+
exports.StatusRequest = {
|
|
50
|
+
Draft: "draft",
|
|
51
|
+
Published: "published",
|
|
52
|
+
};
|
|
53
|
+
exports.UpdatePostStatusResponse = {
|
|
54
|
+
Draft: "draft",
|
|
55
|
+
Published: "published",
|
|
56
|
+
};
|
|
57
|
+
/** @internal */
|
|
58
|
+
exports.StatusRequest$outboundSchema = z.enum(exports.StatusRequest);
|
|
59
|
+
/** @internal */
|
|
60
|
+
exports.UpdatePostRequestBody$outboundSchema = z.object({
|
|
61
|
+
title: z.optional(z.string()),
|
|
62
|
+
markdown: z.optional(z.string()),
|
|
63
|
+
status: z.optional(exports.StatusRequest$outboundSchema),
|
|
64
|
+
});
|
|
65
|
+
function updatePostRequestBodyToJSON(updatePostRequestBody) {
|
|
66
|
+
return JSON.stringify(exports.UpdatePostRequestBody$outboundSchema.parse(updatePostRequestBody));
|
|
67
|
+
}
|
|
68
|
+
/** @internal */
|
|
69
|
+
exports.UpdatePostRequest$outboundSchema = z.object({
|
|
70
|
+
postId: z.string(),
|
|
71
|
+
body: z.lazy(() => exports.UpdatePostRequestBody$outboundSchema),
|
|
72
|
+
});
|
|
73
|
+
function updatePostRequestToJSON(updatePostRequest) {
|
|
74
|
+
return JSON.stringify(exports.UpdatePostRequest$outboundSchema.parse(updatePostRequest));
|
|
75
|
+
}
|
|
76
|
+
/** @internal */
|
|
77
|
+
exports.UpdatePostStatusResponse$inboundSchema = openEnums.inboundSchema(exports.UpdatePostStatusResponse);
|
|
78
|
+
/** @internal */
|
|
79
|
+
exports.UpdatePostPost$inboundSchema = z.object({
|
|
80
|
+
id: types.string(),
|
|
81
|
+
title: types.string(),
|
|
82
|
+
content: types.string(),
|
|
83
|
+
markdown: types.string(),
|
|
84
|
+
recommendations: types.nullable(types.string()),
|
|
85
|
+
contentType: types.string(),
|
|
86
|
+
sourceMetadata: types.optional(z.any()),
|
|
87
|
+
status: exports.UpdatePostStatusResponse$inboundSchema,
|
|
88
|
+
createdAt: types.string(),
|
|
89
|
+
updatedAt: types.string(),
|
|
90
|
+
});
|
|
91
|
+
function updatePostPostFromJSON(jsonString) {
|
|
92
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePostPost$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePostPost' from JSON`);
|
|
93
|
+
}
|
|
94
|
+
/** @internal */
|
|
95
|
+
exports.UpdatePostResponse$inboundSchema = z.object({
|
|
96
|
+
post: z.lazy(() => exports.UpdatePostPost$inboundSchema),
|
|
97
|
+
});
|
|
98
|
+
function updatePostResponseFromJSON(jsonString) {
|
|
99
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdatePostResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePostResponse' from JSON`);
|
|
100
|
+
}
|
|
101
|
+
//# sourceMappingURL=update-post.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-post.js","sourceRoot":"","sources":["../../../../src/models/operations/update-post.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4EH,kEAMC;AAiBD,0DAMC;AAyBD,wDAQC;AAUD,gEAQC;AA1JD,+CAAiC;AACjC,qDAAiD;AACjD,gEAAkD;AAGlD,iEAAmD;AAGtC,QAAA,aAAa,GAAG;IAC3B,KAAK,EAAE,OAAO;IACd,SAAS,EAAE,WAAW;CACd,CAAC;AAcE,QAAA,wBAAwB,GAAG;IACtC,KAAK,EAAE,OAAO;IACd,SAAS,EAAE,WAAW;CACd,CAAC;AAyBX,gBAAgB;AACH,QAAA,4BAA4B,GACvC,CAAC,CAAC,IAAI,CAAC,qBAAa,CAAC,CAAC;AASxB,gBAAgB;AACH,QAAA,oCAAoC,GAG7C,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC7B,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAChC,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,oCAA4B,CAAC;CACjD,CAAC,CAAC;AAEH,SAAgB,2BAA2B,CACzC,qBAA4C;IAE5C,OAAO,IAAI,CAAC,SAAS,CACnB,4CAAoC,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAClE,CAAC;AACJ,CAAC;AAQD,gBAAgB;AACH,QAAA,gCAAgC,GAGzC,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,C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,oCAA4B,CAAC;CACjD,CAAC,CAAC;AAEH,SAAgB,0BAA0B,CACxC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,wCAAgC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC5D,gDAAgD,CACjD,CAAC;AACJ,CAAC"}
|
|
@@ -9,5 +9,13 @@ export declare class Content extends ClientSDK {
|
|
|
9
9
|
* Get a single post
|
|
10
10
|
*/
|
|
11
11
|
getPost(request: operations.GetPostRequest, options?: RequestOptions): Promise<operations.GetPostResponse>;
|
|
12
|
+
/**
|
|
13
|
+
* Delete a single post
|
|
14
|
+
*/
|
|
15
|
+
deletePost(request: operations.DeletePostRequest, options?: RequestOptions): Promise<operations.DeletePostResponse>;
|
|
16
|
+
/**
|
|
17
|
+
* Update a single post
|
|
18
|
+
*/
|
|
19
|
+
updatePost(request: operations.UpdatePostRequest, options?: RequestOptions): Promise<operations.UpdatePostResponse>;
|
|
12
20
|
}
|
|
13
21
|
//# sourceMappingURL=content.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../../../src/sdk/content.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../../../src/sdk/content.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,OAAQ,SAAQ,SAAS;IACpC;;OAEG;IACG,SAAS,CACb,OAAO,CAAC,EAAE,UAAU,CAAC,gBAAgB,GAAG,SAAS,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,iBAAiB,CAAC;IAQxC;;OAEG;IACG,OAAO,CACX,OAAO,EAAE,UAAU,CAAC,cAAc,EAClC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,eAAe,CAAC;IAQtC;;OAEG;IACG,UAAU,CACd,OAAO,EAAE,UAAU,CAAC,iBAAiB,EACrC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC;IAQzC;;OAEG;IACG,UAAU,CACd,OAAO,EAAE,UAAU,CAAC,iBAAiB,EACrC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC;CAO1C"}
|
|
@@ -5,8 +5,10 @@
|
|
|
5
5
|
*/
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
exports.Content = void 0;
|
|
8
|
+
const content_delete_post_js_1 = require("../funcs/content-delete-post.js");
|
|
8
9
|
const content_get_post_js_1 = require("../funcs/content-get-post.js");
|
|
9
10
|
const content_list_posts_js_1 = require("../funcs/content-list-posts.js");
|
|
11
|
+
const content_update_post_js_1 = require("../funcs/content-update-post.js");
|
|
10
12
|
const sdks_js_1 = require("../lib/sdks.js");
|
|
11
13
|
const fp_js_1 = require("../types/fp.js");
|
|
12
14
|
class Content extends sdks_js_1.ClientSDK {
|
|
@@ -22,6 +24,18 @@ class Content extends sdks_js_1.ClientSDK {
|
|
|
22
24
|
async getPost(request, options) {
|
|
23
25
|
return (0, fp_js_1.unwrapAsync)((0, content_get_post_js_1.contentGetPost)(this, request, options));
|
|
24
26
|
}
|
|
27
|
+
/**
|
|
28
|
+
* Delete a single post
|
|
29
|
+
*/
|
|
30
|
+
async deletePost(request, options) {
|
|
31
|
+
return (0, fp_js_1.unwrapAsync)((0, content_delete_post_js_1.contentDeletePost)(this, request, options));
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Update a single post
|
|
35
|
+
*/
|
|
36
|
+
async updatePost(request, options) {
|
|
37
|
+
return (0, fp_js_1.unwrapAsync)((0, content_update_post_js_1.contentUpdatePost)(this, request, options));
|
|
38
|
+
}
|
|
25
39
|
}
|
|
26
40
|
exports.Content = Content;
|
|
27
41
|
//# sourceMappingURL=content.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content.js","sourceRoot":"","sources":["../../../src/sdk/content.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,sEAA8D;AAC9D,0EAAkE;AAClE,4CAA2D;AAE3D,0CAA6C;AAE7C,MAAa,OAAQ,SAAQ,mBAAS;IACpC;;OAEG;IACH,KAAK,CAAC,SAAS,CACb,OAAiD,EACjD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,wCAAgB,EACjC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,OAAO,CACX,OAAkC,EAClC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,oCAAc,EAC/B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;
|
|
1
|
+
{"version":3,"file":"content.js","sourceRoot":"","sources":["../../../src/sdk/content.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,4EAAoE;AACpE,sEAA8D;AAC9D,0EAAkE;AAClE,4EAAoE;AACpE,4CAA2D;AAE3D,0CAA6C;AAE7C,MAAa,OAAQ,SAAQ,mBAAS;IACpC;;OAEG;IACH,KAAK,CAAC,SAAS,CACb,OAAiD,EACjD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,wCAAgB,EACjC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,OAAO,CACX,OAAkC,EAClC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,oCAAc,EAC/B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,UAAU,CACd,OAAqC,EACrC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,0CAAiB,EAClC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,UAAU,CACd,OAAqC,EACrC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,0CAAiB,EAClC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AAxDD,0BAwDC"}
|