perspectapi-ts-sdk 5.3.0 → 5.4.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.
- package/dist/index.d.mts +12 -1
- package/dist/index.d.ts +12 -1
- package/package.json +1 -1
- package/src/v2/types.ts +15 -1
package/dist/index.d.mts
CHANGED
|
@@ -3104,6 +3104,15 @@ interface V2PaginationParams {
|
|
|
3104
3104
|
starting_after?: string;
|
|
3105
3105
|
ending_before?: string;
|
|
3106
3106
|
}
|
|
3107
|
+
interface V2Media extends V2Object {
|
|
3108
|
+
object: "media";
|
|
3109
|
+
file_name: string;
|
|
3110
|
+
url: string;
|
|
3111
|
+
content_type: string | null;
|
|
3112
|
+
width: number | null;
|
|
3113
|
+
height: number | null;
|
|
3114
|
+
filesize: number | null;
|
|
3115
|
+
}
|
|
3107
3116
|
interface V2Content extends V2Object {
|
|
3108
3117
|
object: "content";
|
|
3109
3118
|
title: string;
|
|
@@ -3115,7 +3124,8 @@ interface V2Content extends V2Object {
|
|
|
3115
3124
|
status: "draft" | "publish" | "private" | "trash" | "scheduled";
|
|
3116
3125
|
author: string | null;
|
|
3117
3126
|
custom: Record<string, unknown> | null;
|
|
3118
|
-
featured_image
|
|
3127
|
+
featured_image: string | null;
|
|
3128
|
+
media: V2Media[];
|
|
3119
3129
|
scheduled_at: string | null;
|
|
3120
3130
|
published_at: string;
|
|
3121
3131
|
updated_at: string;
|
|
@@ -3162,6 +3172,7 @@ interface V2Product extends V2Object {
|
|
|
3162
3172
|
} | null;
|
|
3163
3173
|
tax_behavior: "inclusive" | "exclusive" | "unspecified" | null;
|
|
3164
3174
|
category_id: string | null;
|
|
3175
|
+
media: V2Media[];
|
|
3165
3176
|
created_at: string | null;
|
|
3166
3177
|
updated_at: string | null;
|
|
3167
3178
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -3104,6 +3104,15 @@ interface V2PaginationParams {
|
|
|
3104
3104
|
starting_after?: string;
|
|
3105
3105
|
ending_before?: string;
|
|
3106
3106
|
}
|
|
3107
|
+
interface V2Media extends V2Object {
|
|
3108
|
+
object: "media";
|
|
3109
|
+
file_name: string;
|
|
3110
|
+
url: string;
|
|
3111
|
+
content_type: string | null;
|
|
3112
|
+
width: number | null;
|
|
3113
|
+
height: number | null;
|
|
3114
|
+
filesize: number | null;
|
|
3115
|
+
}
|
|
3107
3116
|
interface V2Content extends V2Object {
|
|
3108
3117
|
object: "content";
|
|
3109
3118
|
title: string;
|
|
@@ -3115,7 +3124,8 @@ interface V2Content extends V2Object {
|
|
|
3115
3124
|
status: "draft" | "publish" | "private" | "trash" | "scheduled";
|
|
3116
3125
|
author: string | null;
|
|
3117
3126
|
custom: Record<string, unknown> | null;
|
|
3118
|
-
featured_image
|
|
3127
|
+
featured_image: string | null;
|
|
3128
|
+
media: V2Media[];
|
|
3119
3129
|
scheduled_at: string | null;
|
|
3120
3130
|
published_at: string;
|
|
3121
3131
|
updated_at: string;
|
|
@@ -3162,6 +3172,7 @@ interface V2Product extends V2Object {
|
|
|
3162
3172
|
} | null;
|
|
3163
3173
|
tax_behavior: "inclusive" | "exclusive" | "unspecified" | null;
|
|
3164
3174
|
category_id: string | null;
|
|
3175
|
+
media: V2Media[];
|
|
3165
3176
|
created_at: string | null;
|
|
3166
3177
|
updated_at: string | null;
|
|
3167
3178
|
}
|
package/package.json
CHANGED
package/src/v2/types.ts
CHANGED
|
@@ -50,6 +50,18 @@ export interface V2PaginationParams {
|
|
|
50
50
|
ending_before?: string;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
+
// --- Media ---
|
|
54
|
+
|
|
55
|
+
export interface V2Media extends V2Object {
|
|
56
|
+
object: "media";
|
|
57
|
+
file_name: string;
|
|
58
|
+
url: string;
|
|
59
|
+
content_type: string | null;
|
|
60
|
+
width: number | null;
|
|
61
|
+
height: number | null;
|
|
62
|
+
filesize: number | null;
|
|
63
|
+
}
|
|
64
|
+
|
|
53
65
|
// --- Content ---
|
|
54
66
|
|
|
55
67
|
export interface V2Content extends V2Object {
|
|
@@ -63,7 +75,8 @@ export interface V2Content extends V2Object {
|
|
|
63
75
|
status: "draft" | "publish" | "private" | "trash" | "scheduled";
|
|
64
76
|
author: string | null;
|
|
65
77
|
custom: Record<string, unknown> | null;
|
|
66
|
-
featured_image
|
|
78
|
+
featured_image: string | null;
|
|
79
|
+
media: V2Media[];
|
|
67
80
|
scheduled_at: string | null;
|
|
68
81
|
published_at: string;
|
|
69
82
|
updated_at: string;
|
|
@@ -112,6 +125,7 @@ export interface V2Product extends V2Object {
|
|
|
112
125
|
recurring: { interval: string; interval_count?: number } | null;
|
|
113
126
|
tax_behavior: "inclusive" | "exclusive" | "unspecified" | null;
|
|
114
127
|
category_id: string | null;
|
|
128
|
+
media: V2Media[];
|
|
115
129
|
created_at: string | null;
|
|
116
130
|
updated_at: string | null;
|
|
117
131
|
}
|