@devite/shopware-client 1.3.1 → 1.3.2
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 +139 -134
- package/dist/index.d.cts +40 -4
- package/dist/index.d.mts +40 -4
- package/dist/index.d.ts +40 -4
- package/dist/index.mjs +135 -135
- package/dist/types/api/global/filter/EqualsFilter.d.ts +1 -1
- package/dist/types/api/global/filter/RangeFilter.d.ts +2 -2
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -99,7 +99,7 @@ interface SimpleFilter {
|
|
|
99
99
|
interface EqualsFilter {
|
|
100
100
|
type: "equals";
|
|
101
101
|
field: string;
|
|
102
|
-
value:
|
|
102
|
+
value: string | number | boolean | null;
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
interface MultiNotFilter {
|
|
@@ -111,12 +111,12 @@ interface MultiNotFilter {
|
|
|
111
111
|
interface RangeFilter {
|
|
112
112
|
type: "range";
|
|
113
113
|
field: string;
|
|
114
|
-
parameters:
|
|
114
|
+
parameters: {
|
|
115
115
|
gte?: number;
|
|
116
116
|
gt?: number;
|
|
117
117
|
lte?: number;
|
|
118
118
|
lt?: number;
|
|
119
|
-
}
|
|
119
|
+
};
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
type Filters = Array<SimpleFilter | EqualsFilter | MultiNotFilter | RangeFilter>;
|
|
@@ -12550,4 +12550,40 @@ declare class ShopwareError extends Error {
|
|
|
12550
12550
|
constructor(message: string, response: ClientResponse);
|
|
12551
12551
|
}
|
|
12552
12552
|
|
|
12553
|
-
|
|
12553
|
+
declare class BinaryPayload extends Payload<Blob> {
|
|
12554
|
+
static CONTENT_TYPE: string;
|
|
12555
|
+
data?: Blob;
|
|
12556
|
+
constructor(data?: Blob);
|
|
12557
|
+
contentType(): string;
|
|
12558
|
+
/**
|
|
12559
|
+
* @throws {SyntaxError} if the data is not a valid JSON string
|
|
12560
|
+
*/
|
|
12561
|
+
deserialize(data: Blob): Promise<void>;
|
|
12562
|
+
serialize(): Blob | undefined;
|
|
12563
|
+
}
|
|
12564
|
+
|
|
12565
|
+
declare class HtmlPayload extends Payload<string> {
|
|
12566
|
+
static CONTENT_TYPE: string;
|
|
12567
|
+
data?: string;
|
|
12568
|
+
constructor(data?: string);
|
|
12569
|
+
contentType(): string;
|
|
12570
|
+
/**
|
|
12571
|
+
* @throws {SyntaxError} if the data is not a valid JSON string
|
|
12572
|
+
*/
|
|
12573
|
+
deserialize(data: Blob): Promise<void>;
|
|
12574
|
+
serialize(): string | undefined;
|
|
12575
|
+
}
|
|
12576
|
+
|
|
12577
|
+
declare class JsonPayload extends Payload<string> {
|
|
12578
|
+
static CONTENT_TYPE: string;
|
|
12579
|
+
data?: object;
|
|
12580
|
+
constructor(data?: object);
|
|
12581
|
+
contentType(): string;
|
|
12582
|
+
/**
|
|
12583
|
+
* @throws {SyntaxError} if the data is not a valid JSON string
|
|
12584
|
+
*/
|
|
12585
|
+
deserialize(data: Blob): Promise<void>;
|
|
12586
|
+
serialize(): string | undefined;
|
|
12587
|
+
}
|
|
12588
|
+
|
|
12589
|
+
export { AdminShopwareClient, BinaryPayload, type ClientRequestOptions, type ClientResponse, HTTPRequestMethod, HtmlPayload, JsonPayload, type OAuthResponseBody, type OAuthScope, Payload, type RequestCacheEntry, ShopwareClient, ShopwareError, StoreShopwareClient };
|
package/dist/index.d.mts
CHANGED
|
@@ -99,7 +99,7 @@ interface SimpleFilter {
|
|
|
99
99
|
interface EqualsFilter {
|
|
100
100
|
type: "equals";
|
|
101
101
|
field: string;
|
|
102
|
-
value:
|
|
102
|
+
value: string | number | boolean | null;
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
interface MultiNotFilter {
|
|
@@ -111,12 +111,12 @@ interface MultiNotFilter {
|
|
|
111
111
|
interface RangeFilter {
|
|
112
112
|
type: "range";
|
|
113
113
|
field: string;
|
|
114
|
-
parameters:
|
|
114
|
+
parameters: {
|
|
115
115
|
gte?: number;
|
|
116
116
|
gt?: number;
|
|
117
117
|
lte?: number;
|
|
118
118
|
lt?: number;
|
|
119
|
-
}
|
|
119
|
+
};
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
type Filters = Array<SimpleFilter | EqualsFilter | MultiNotFilter | RangeFilter>;
|
|
@@ -12550,4 +12550,40 @@ declare class ShopwareError extends Error {
|
|
|
12550
12550
|
constructor(message: string, response: ClientResponse);
|
|
12551
12551
|
}
|
|
12552
12552
|
|
|
12553
|
-
|
|
12553
|
+
declare class BinaryPayload extends Payload<Blob> {
|
|
12554
|
+
static CONTENT_TYPE: string;
|
|
12555
|
+
data?: Blob;
|
|
12556
|
+
constructor(data?: Blob);
|
|
12557
|
+
contentType(): string;
|
|
12558
|
+
/**
|
|
12559
|
+
* @throws {SyntaxError} if the data is not a valid JSON string
|
|
12560
|
+
*/
|
|
12561
|
+
deserialize(data: Blob): Promise<void>;
|
|
12562
|
+
serialize(): Blob | undefined;
|
|
12563
|
+
}
|
|
12564
|
+
|
|
12565
|
+
declare class HtmlPayload extends Payload<string> {
|
|
12566
|
+
static CONTENT_TYPE: string;
|
|
12567
|
+
data?: string;
|
|
12568
|
+
constructor(data?: string);
|
|
12569
|
+
contentType(): string;
|
|
12570
|
+
/**
|
|
12571
|
+
* @throws {SyntaxError} if the data is not a valid JSON string
|
|
12572
|
+
*/
|
|
12573
|
+
deserialize(data: Blob): Promise<void>;
|
|
12574
|
+
serialize(): string | undefined;
|
|
12575
|
+
}
|
|
12576
|
+
|
|
12577
|
+
declare class JsonPayload extends Payload<string> {
|
|
12578
|
+
static CONTENT_TYPE: string;
|
|
12579
|
+
data?: object;
|
|
12580
|
+
constructor(data?: object);
|
|
12581
|
+
contentType(): string;
|
|
12582
|
+
/**
|
|
12583
|
+
* @throws {SyntaxError} if the data is not a valid JSON string
|
|
12584
|
+
*/
|
|
12585
|
+
deserialize(data: Blob): Promise<void>;
|
|
12586
|
+
serialize(): string | undefined;
|
|
12587
|
+
}
|
|
12588
|
+
|
|
12589
|
+
export { AdminShopwareClient, BinaryPayload, type ClientRequestOptions, type ClientResponse, HTTPRequestMethod, HtmlPayload, JsonPayload, type OAuthResponseBody, type OAuthScope, Payload, type RequestCacheEntry, ShopwareClient, ShopwareError, StoreShopwareClient };
|
package/dist/index.d.ts
CHANGED
|
@@ -99,7 +99,7 @@ interface SimpleFilter {
|
|
|
99
99
|
interface EqualsFilter {
|
|
100
100
|
type: "equals";
|
|
101
101
|
field: string;
|
|
102
|
-
value:
|
|
102
|
+
value: string | number | boolean | null;
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
interface MultiNotFilter {
|
|
@@ -111,12 +111,12 @@ interface MultiNotFilter {
|
|
|
111
111
|
interface RangeFilter {
|
|
112
112
|
type: "range";
|
|
113
113
|
field: string;
|
|
114
|
-
parameters:
|
|
114
|
+
parameters: {
|
|
115
115
|
gte?: number;
|
|
116
116
|
gt?: number;
|
|
117
117
|
lte?: number;
|
|
118
118
|
lt?: number;
|
|
119
|
-
}
|
|
119
|
+
};
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
type Filters = Array<SimpleFilter | EqualsFilter | MultiNotFilter | RangeFilter>;
|
|
@@ -12550,4 +12550,40 @@ declare class ShopwareError extends Error {
|
|
|
12550
12550
|
constructor(message: string, response: ClientResponse);
|
|
12551
12551
|
}
|
|
12552
12552
|
|
|
12553
|
-
|
|
12553
|
+
declare class BinaryPayload extends Payload<Blob> {
|
|
12554
|
+
static CONTENT_TYPE: string;
|
|
12555
|
+
data?: Blob;
|
|
12556
|
+
constructor(data?: Blob);
|
|
12557
|
+
contentType(): string;
|
|
12558
|
+
/**
|
|
12559
|
+
* @throws {SyntaxError} if the data is not a valid JSON string
|
|
12560
|
+
*/
|
|
12561
|
+
deserialize(data: Blob): Promise<void>;
|
|
12562
|
+
serialize(): Blob | undefined;
|
|
12563
|
+
}
|
|
12564
|
+
|
|
12565
|
+
declare class HtmlPayload extends Payload<string> {
|
|
12566
|
+
static CONTENT_TYPE: string;
|
|
12567
|
+
data?: string;
|
|
12568
|
+
constructor(data?: string);
|
|
12569
|
+
contentType(): string;
|
|
12570
|
+
/**
|
|
12571
|
+
* @throws {SyntaxError} if the data is not a valid JSON string
|
|
12572
|
+
*/
|
|
12573
|
+
deserialize(data: Blob): Promise<void>;
|
|
12574
|
+
serialize(): string | undefined;
|
|
12575
|
+
}
|
|
12576
|
+
|
|
12577
|
+
declare class JsonPayload extends Payload<string> {
|
|
12578
|
+
static CONTENT_TYPE: string;
|
|
12579
|
+
data?: object;
|
|
12580
|
+
constructor(data?: object);
|
|
12581
|
+
contentType(): string;
|
|
12582
|
+
/**
|
|
12583
|
+
* @throws {SyntaxError} if the data is not a valid JSON string
|
|
12584
|
+
*/
|
|
12585
|
+
deserialize(data: Blob): Promise<void>;
|
|
12586
|
+
serialize(): string | undefined;
|
|
12587
|
+
}
|
|
12588
|
+
|
|
12589
|
+
export { AdminShopwareClient, BinaryPayload, type ClientRequestOptions, type ClientResponse, HTTPRequestMethod, HtmlPayload, JsonPayload, type OAuthResponseBody, type OAuthScope, Payload, type RequestCacheEntry, ShopwareClient, ShopwareError, StoreShopwareClient };
|