@hypelabs-llc/ts-sdk 0.1.3 → 0.1.5
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/generated/announcements/index.d.ts +27 -0
- package/dist/generated/announcements/index.js +22 -0
- package/dist/generated/models/index.d.ts +173 -12
- package/dist/generated/models/index.js +155 -6
- package/dist/generated/partnerApiClient.d.ts +10 -0
- package/dist/generated/partnerApiClient.js +11 -0
- package/dist/generated/proxies/item/credentials/index.d.ts +2 -2
- package/dist/generated/proxies/item/credentials/index.js +1 -1
- package/dist/generated/reviews/index.d.ts +52 -0
- package/dist/generated/reviews/index.js +43 -0
- package/dist/generated/reviews/item/approve/index.d.ts +27 -0
- package/dist/generated/reviews/item/approve/index.js +22 -0
- package/dist/generated/reviews/item/index.d.ts +35 -0
- package/dist/generated/reviews/item/index.js +29 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -0
- package/dist/plain.d.ts +15 -0
- package/dist/plain.js +11 -0
- package/package.json +1 -1
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type Announcement } from '../models/index.js';
|
|
2
|
+
import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
|
|
3
|
+
/**
|
|
4
|
+
* Builds and executes requests for operations under /announcements
|
|
5
|
+
*/
|
|
6
|
+
export interface AnnouncementsRequestBuilder extends BaseRequestBuilder<AnnouncementsRequestBuilder> {
|
|
7
|
+
/**
|
|
8
|
+
* Returns the published announcements to show in the dashboard, most recent first.
|
|
9
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
10
|
+
* @returns {Promise<Announcement[]>}
|
|
11
|
+
*/
|
|
12
|
+
get(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<Announcement[] | undefined>;
|
|
13
|
+
/**
|
|
14
|
+
* Returns the published announcements to show in the dashboard, most recent first.
|
|
15
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
16
|
+
* @returns {RequestInformation}
|
|
17
|
+
*/
|
|
18
|
+
toGetRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Uri template for the request builder.
|
|
22
|
+
*/
|
|
23
|
+
export declare const AnnouncementsRequestBuilderUriTemplate = "{+baseurl}/announcements";
|
|
24
|
+
/**
|
|
25
|
+
* Metadata for all the requests in the request builder.
|
|
26
|
+
*/
|
|
27
|
+
export declare const AnnouncementsRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
// Generated by Microsoft Kiota
|
|
4
|
+
// @ts-ignore
|
|
5
|
+
import { createAnnouncementFromDiscriminatorValue } from '../models/index.js';
|
|
6
|
+
/**
|
|
7
|
+
* Uri template for the request builder.
|
|
8
|
+
*/
|
|
9
|
+
export const AnnouncementsRequestBuilderUriTemplate = "{+baseurl}/announcements";
|
|
10
|
+
/**
|
|
11
|
+
* Metadata for all the requests in the request builder.
|
|
12
|
+
*/
|
|
13
|
+
export const AnnouncementsRequestBuilderRequestsMetadata = {
|
|
14
|
+
get: {
|
|
15
|
+
uriTemplate: AnnouncementsRequestBuilderUriTemplate,
|
|
16
|
+
responseBodyContentType: "text/plain;q=0.9",
|
|
17
|
+
adapterMethodName: "sendCollection",
|
|
18
|
+
responseBodyFactory: createAnnouncementFromDiscriminatorValue,
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
/* tslint:enable */
|
|
22
|
+
/* eslint-enable */
|
|
@@ -29,6 +29,41 @@ export interface Activity extends AdditionalDataHolder, Parsable {
|
|
|
29
29
|
*/
|
|
30
30
|
statusCode?: number | null;
|
|
31
31
|
}
|
|
32
|
+
export interface Announcement extends AdditionalDataHolder, Parsable {
|
|
33
|
+
/**
|
|
34
|
+
* The body property
|
|
35
|
+
*/
|
|
36
|
+
body?: string | null;
|
|
37
|
+
/**
|
|
38
|
+
* The id property
|
|
39
|
+
*/
|
|
40
|
+
id?: Guid | null;
|
|
41
|
+
/**
|
|
42
|
+
* The imageUrl property
|
|
43
|
+
*/
|
|
44
|
+
imageUrl?: string | null;
|
|
45
|
+
/**
|
|
46
|
+
* The isLive property
|
|
47
|
+
*/
|
|
48
|
+
isLive?: boolean | null;
|
|
49
|
+
/**
|
|
50
|
+
* The linkLabel property
|
|
51
|
+
*/
|
|
52
|
+
linkLabel?: string | null;
|
|
53
|
+
/**
|
|
54
|
+
* The linkUrl property
|
|
55
|
+
*/
|
|
56
|
+
linkUrl?: string | null;
|
|
57
|
+
/**
|
|
58
|
+
* The status property
|
|
59
|
+
*/
|
|
60
|
+
status?: AnnouncementStatuses | null;
|
|
61
|
+
/**
|
|
62
|
+
* The title property
|
|
63
|
+
*/
|
|
64
|
+
title?: string | null;
|
|
65
|
+
}
|
|
66
|
+
export type AnnouncementStatuses = (typeof AnnouncementStatusesObject)[keyof typeof AnnouncementStatusesObject];
|
|
32
67
|
export interface AuthenticateCustomerRequest extends AdditionalDataHolder, Parsable {
|
|
33
68
|
/**
|
|
34
69
|
* The email property
|
|
@@ -78,6 +113,12 @@ export interface ChangeProxyCredentialsRequest extends AdditionalDataHolder, Par
|
|
|
78
113
|
* @returns {Activity}
|
|
79
114
|
*/
|
|
80
115
|
export declare function createActivityFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
116
|
+
/**
|
|
117
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
118
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
119
|
+
* @returns {Announcement}
|
|
120
|
+
*/
|
|
121
|
+
export declare function createAnnouncementFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
81
122
|
/**
|
|
82
123
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
83
124
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -138,6 +179,12 @@ export declare function createCreateOrderResponseFromDiscriminatorValue(parseNod
|
|
|
138
179
|
* @returns {CreateOrganizationRequest}
|
|
139
180
|
*/
|
|
140
181
|
export declare function createCreateOrganizationRequestFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
182
|
+
/**
|
|
183
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
184
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
185
|
+
* @returns {CreateReviewRequest}
|
|
186
|
+
*/
|
|
187
|
+
export declare function createCreateReviewRequestFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
141
188
|
/**
|
|
142
189
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
143
190
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -468,12 +515,40 @@ export declare function createProxyIpRotationResponseFromDiscriminatorValue(pars
|
|
|
468
515
|
* @returns {ProxyPingResponse}
|
|
469
516
|
*/
|
|
470
517
|
export declare function createProxyPingResponseFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
518
|
+
/**
|
|
519
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
520
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
521
|
+
* @returns {Review}
|
|
522
|
+
*/
|
|
523
|
+
export declare function createReviewFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
471
524
|
/**
|
|
472
525
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
473
526
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
474
527
|
* @returns {ReviewKycRequest}
|
|
475
528
|
*/
|
|
476
529
|
export declare function createReviewKycRequestFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
530
|
+
export interface CreateReviewRequest extends AdditionalDataHolder, Parsable {
|
|
531
|
+
/**
|
|
532
|
+
* The content property
|
|
533
|
+
*/
|
|
534
|
+
content?: string | null;
|
|
535
|
+
/**
|
|
536
|
+
* The customAuthorName property
|
|
537
|
+
*/
|
|
538
|
+
customAuthorName?: string | null;
|
|
539
|
+
/**
|
|
540
|
+
* The customerId property
|
|
541
|
+
*/
|
|
542
|
+
customerId?: Guid | null;
|
|
543
|
+
/**
|
|
544
|
+
* The isFeatured property
|
|
545
|
+
*/
|
|
546
|
+
isFeatured?: boolean | null;
|
|
547
|
+
/**
|
|
548
|
+
* The rating property
|
|
549
|
+
*/
|
|
550
|
+
rating?: number | null;
|
|
551
|
+
}
|
|
477
552
|
/**
|
|
478
553
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
479
554
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -676,6 +751,12 @@ export interface DepositResponse extends AdditionalDataHolder, Parsable {
|
|
|
676
751
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
677
752
|
*/
|
|
678
753
|
export declare function deserializeIntoActivity(activity?: Partial<Activity> | undefined): Record<string, (node: ParseNode) => void>;
|
|
754
|
+
/**
|
|
755
|
+
* The deserialization information for the current model
|
|
756
|
+
* @param Announcement The instance to deserialize into.
|
|
757
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
758
|
+
*/
|
|
759
|
+
export declare function deserializeIntoAnnouncement(announcement?: Partial<Announcement> | undefined): Record<string, (node: ParseNode) => void>;
|
|
679
760
|
/**
|
|
680
761
|
* The deserialization information for the current model
|
|
681
762
|
* @param AuthenticateCustomerRequest The instance to deserialize into.
|
|
@@ -736,6 +817,12 @@ export declare function deserializeIntoCreateOrderResponse(createOrderResponse?:
|
|
|
736
817
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
737
818
|
*/
|
|
738
819
|
export declare function deserializeIntoCreateOrganizationRequest(createOrganizationRequest?: Partial<CreateOrganizationRequest> | undefined): Record<string, (node: ParseNode) => void>;
|
|
820
|
+
/**
|
|
821
|
+
* The deserialization information for the current model
|
|
822
|
+
* @param CreateReviewRequest The instance to deserialize into.
|
|
823
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
824
|
+
*/
|
|
825
|
+
export declare function deserializeIntoCreateReviewRequest(createReviewRequest?: Partial<CreateReviewRequest> | undefined): Record<string, (node: ParseNode) => void>;
|
|
739
826
|
/**
|
|
740
827
|
* The deserialization information for the current model
|
|
741
828
|
* @param CurrencyAmount The instance to deserialize into.
|
|
@@ -940,6 +1027,12 @@ export declare function deserializeIntoProxyIpRotationResponse(proxyIpRotationRe
|
|
|
940
1027
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
941
1028
|
*/
|
|
942
1029
|
export declare function deserializeIntoProxyPingResponse(proxyPingResponse?: Partial<ProxyPingResponse> | undefined): Record<string, (node: ParseNode) => void>;
|
|
1030
|
+
/**
|
|
1031
|
+
* The deserialization information for the current model
|
|
1032
|
+
* @param Review The instance to deserialize into.
|
|
1033
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
1034
|
+
*/
|
|
1035
|
+
export declare function deserializeIntoReview(review?: Partial<Review> | undefined): Record<string, (node: ParseNode) => void>;
|
|
943
1036
|
/**
|
|
944
1037
|
* The deserialization information for the current model
|
|
945
1038
|
* @param ReviewKycRequest The instance to deserialize into.
|
|
@@ -1185,10 +1278,6 @@ export interface Order extends AdditionalDataHolder, Parsable {
|
|
|
1185
1278
|
* The completePaymentUrl property
|
|
1186
1279
|
*/
|
|
1187
1280
|
completePaymentUrl?: string | null;
|
|
1188
|
-
/**
|
|
1189
|
-
* The consumerRef property
|
|
1190
|
-
*/
|
|
1191
|
-
consumerRef?: string | null;
|
|
1192
1281
|
/**
|
|
1193
1282
|
* The currency property
|
|
1194
1283
|
*/
|
|
@@ -1209,18 +1298,10 @@ export interface Order extends AdditionalDataHolder, Parsable {
|
|
|
1209
1298
|
* The isInGracePeriod property
|
|
1210
1299
|
*/
|
|
1211
1300
|
isInGracePeriod?: boolean | null;
|
|
1212
|
-
/**
|
|
1213
|
-
* The ispId property
|
|
1214
|
-
*/
|
|
1215
|
-
ispId?: Guid | null;
|
|
1216
1301
|
/**
|
|
1217
1302
|
* The isTrial property
|
|
1218
1303
|
*/
|
|
1219
1304
|
isTrial?: boolean | null;
|
|
1220
|
-
/**
|
|
1221
|
-
* The locationId property
|
|
1222
|
-
*/
|
|
1223
|
-
locationId?: Guid | null;
|
|
1224
1305
|
/**
|
|
1225
1306
|
* The paymentMethod property
|
|
1226
1307
|
*/
|
|
@@ -1520,6 +1601,10 @@ export interface PaymentProcessor extends AdditionalDataHolder, Parsable {
|
|
|
1520
1601
|
* The organizationId property
|
|
1521
1602
|
*/
|
|
1522
1603
|
organizationId?: Guid | null;
|
|
1604
|
+
/**
|
|
1605
|
+
* The paymentMethod property
|
|
1606
|
+
*/
|
|
1607
|
+
paymentMethod?: PaymentMethods | null;
|
|
1523
1608
|
/**
|
|
1524
1609
|
* The processor property
|
|
1525
1610
|
*/
|
|
@@ -1706,6 +1791,10 @@ export interface ProxyIpRotationResponse extends AdditionalDataHolder, Parsable
|
|
|
1706
1791
|
delaySeconds?: number | null;
|
|
1707
1792
|
}
|
|
1708
1793
|
export interface ProxyPingResponse extends AdditionalDataHolder, Parsable {
|
|
1794
|
+
/**
|
|
1795
|
+
* The exitIp property
|
|
1796
|
+
*/
|
|
1797
|
+
exitIp?: string | null;
|
|
1709
1798
|
/**
|
|
1710
1799
|
* The latencyMs property
|
|
1711
1800
|
*/
|
|
@@ -1714,6 +1803,48 @@ export interface ProxyPingResponse extends AdditionalDataHolder, Parsable {
|
|
|
1714
1803
|
* The reachable property
|
|
1715
1804
|
*/
|
|
1716
1805
|
reachable?: boolean | null;
|
|
1806
|
+
/**
|
|
1807
|
+
* The statusCode property
|
|
1808
|
+
*/
|
|
1809
|
+
statusCode?: number | null;
|
|
1810
|
+
}
|
|
1811
|
+
export interface Review extends AdditionalDataHolder, Parsable {
|
|
1812
|
+
/**
|
|
1813
|
+
* The authorName property
|
|
1814
|
+
*/
|
|
1815
|
+
authorName?: string | null;
|
|
1816
|
+
/**
|
|
1817
|
+
* The content property
|
|
1818
|
+
*/
|
|
1819
|
+
content?: string | null;
|
|
1820
|
+
/**
|
|
1821
|
+
* The customAuthorName property
|
|
1822
|
+
*/
|
|
1823
|
+
customAuthorName?: string | null;
|
|
1824
|
+
/**
|
|
1825
|
+
* The customerId property
|
|
1826
|
+
*/
|
|
1827
|
+
customerId?: Guid | null;
|
|
1828
|
+
/**
|
|
1829
|
+
* The id property
|
|
1830
|
+
*/
|
|
1831
|
+
id?: Guid | null;
|
|
1832
|
+
/**
|
|
1833
|
+
* The isFeatured property
|
|
1834
|
+
*/
|
|
1835
|
+
isFeatured?: boolean | null;
|
|
1836
|
+
/**
|
|
1837
|
+
* The isPending property
|
|
1838
|
+
*/
|
|
1839
|
+
isPending?: boolean | null;
|
|
1840
|
+
/**
|
|
1841
|
+
* The organizationId property
|
|
1842
|
+
*/
|
|
1843
|
+
organizationId?: Guid | null;
|
|
1844
|
+
/**
|
|
1845
|
+
* The rating property
|
|
1846
|
+
*/
|
|
1847
|
+
rating?: number | null;
|
|
1717
1848
|
}
|
|
1718
1849
|
export interface ReviewKycRequest extends AdditionalDataHolder, Parsable {
|
|
1719
1850
|
/**
|
|
@@ -1728,6 +1859,13 @@ export interface ReviewKycRequest extends AdditionalDataHolder, Parsable {
|
|
|
1728
1859
|
* @param writer Serialization writer to use to serialize this model
|
|
1729
1860
|
*/
|
|
1730
1861
|
export declare function serializeActivity(writer: SerializationWriter, activity?: Partial<Activity> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
1862
|
+
/**
|
|
1863
|
+
* Serializes information the current object
|
|
1864
|
+
* @param Announcement The instance to serialize from.
|
|
1865
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
1866
|
+
* @param writer Serialization writer to use to serialize this model
|
|
1867
|
+
*/
|
|
1868
|
+
export declare function serializeAnnouncement(writer: SerializationWriter, announcement?: Partial<Announcement> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
1731
1869
|
/**
|
|
1732
1870
|
* Serializes information the current object
|
|
1733
1871
|
* @param AuthenticateCustomerRequest The instance to serialize from.
|
|
@@ -1798,6 +1936,13 @@ export declare function serializeCreateOrderResponse(writer: SerializationWriter
|
|
|
1798
1936
|
* @param writer Serialization writer to use to serialize this model
|
|
1799
1937
|
*/
|
|
1800
1938
|
export declare function serializeCreateOrganizationRequest(writer: SerializationWriter, createOrganizationRequest?: Partial<CreateOrganizationRequest> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
1939
|
+
/**
|
|
1940
|
+
* Serializes information the current object
|
|
1941
|
+
* @param CreateReviewRequest The instance to serialize from.
|
|
1942
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
1943
|
+
* @param writer Serialization writer to use to serialize this model
|
|
1944
|
+
*/
|
|
1945
|
+
export declare function serializeCreateReviewRequest(writer: SerializationWriter, createReviewRequest?: Partial<CreateReviewRequest> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
1801
1946
|
/**
|
|
1802
1947
|
* Serializes information the current object
|
|
1803
1948
|
* @param CurrencyAmount The instance to serialize from.
|
|
@@ -2036,6 +2181,13 @@ export declare function serializeProxyIpRotationResponse(writer: SerializationWr
|
|
|
2036
2181
|
* @param writer Serialization writer to use to serialize this model
|
|
2037
2182
|
*/
|
|
2038
2183
|
export declare function serializeProxyPingResponse(writer: SerializationWriter, proxyPingResponse?: Partial<ProxyPingResponse> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
2184
|
+
/**
|
|
2185
|
+
* Serializes information the current object
|
|
2186
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
2187
|
+
* @param Review The instance to serialize from.
|
|
2188
|
+
* @param writer Serialization writer to use to serialize this model
|
|
2189
|
+
*/
|
|
2190
|
+
export declare function serializeReview(writer: SerializationWriter, review?: Partial<Review> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
2039
2191
|
/**
|
|
2040
2192
|
* Serializes information the current object
|
|
2041
2193
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
@@ -2280,6 +2432,11 @@ export interface UpdateProxyIpRotationRequest extends AdditionalDataHolder, Pars
|
|
|
2280
2432
|
*/
|
|
2281
2433
|
delaySeconds?: number | null;
|
|
2282
2434
|
}
|
|
2435
|
+
export declare const AnnouncementStatusesObject: {
|
|
2436
|
+
readonly Draft: "Draft";
|
|
2437
|
+
readonly Published: "Published";
|
|
2438
|
+
readonly Archived: "Archived";
|
|
2439
|
+
};
|
|
2283
2440
|
export declare const BillingCyclesObject: {
|
|
2284
2441
|
readonly Daily: "Daily";
|
|
2285
2442
|
readonly Weekly: "Weekly";
|
|
@@ -2303,11 +2460,14 @@ export declare const NullableOfBillingCyclesObject: {
|
|
|
2303
2460
|
readonly Monthly: "Monthly";
|
|
2304
2461
|
readonly Quarterly: "Quarterly";
|
|
2305
2462
|
readonly Yearly: "Yearly";
|
|
2463
|
+
readonly OpenapiJsonNullSentinelValue2BF936000FE44250987AE5DDB203E464: "openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464";
|
|
2306
2464
|
};
|
|
2307
2465
|
export declare const NullableOfPaymentMethodsObject: {
|
|
2308
2466
|
readonly Balance: "Balance";
|
|
2309
2467
|
readonly CreditCard: "CreditCard";
|
|
2310
2468
|
readonly Cryptocurrency: "Cryptocurrency";
|
|
2469
|
+
readonly Debug: "Debug";
|
|
2470
|
+
readonly OpenapiJsonNullSentinelValue2BF936000FE44250987AE5DDB203E464: "openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464";
|
|
2311
2471
|
};
|
|
2312
2472
|
export declare const OrderStatusesObject: {
|
|
2313
2473
|
readonly Pending: "Pending";
|
|
@@ -2323,6 +2483,7 @@ export declare const PaymentMethodsObject: {
|
|
|
2323
2483
|
readonly Balance: "Balance";
|
|
2324
2484
|
readonly CreditCard: "CreditCard";
|
|
2325
2485
|
readonly Cryptocurrency: "Cryptocurrency";
|
|
2486
|
+
readonly Debug: "Debug";
|
|
2326
2487
|
};
|
|
2327
2488
|
export declare const PaymentProcessorsObject: {
|
|
2328
2489
|
readonly Heleket: "Heleket";
|
|
@@ -7,6 +7,15 @@
|
|
|
7
7
|
export function createActivityFromDiscriminatorValue(parseNode) {
|
|
8
8
|
return deserializeIntoActivity;
|
|
9
9
|
}
|
|
10
|
+
/**
|
|
11
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
12
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
13
|
+
* @returns {Announcement}
|
|
14
|
+
*/
|
|
15
|
+
// @ts-ignore
|
|
16
|
+
export function createAnnouncementFromDiscriminatorValue(parseNode) {
|
|
17
|
+
return deserializeIntoAnnouncement;
|
|
18
|
+
}
|
|
10
19
|
/**
|
|
11
20
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
12
21
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -97,6 +106,15 @@ export function createCreateOrderResponseFromDiscriminatorValue(parseNode) {
|
|
|
97
106
|
export function createCreateOrganizationRequestFromDiscriminatorValue(parseNode) {
|
|
98
107
|
return deserializeIntoCreateOrganizationRequest;
|
|
99
108
|
}
|
|
109
|
+
/**
|
|
110
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
111
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
112
|
+
* @returns {CreateReviewRequest}
|
|
113
|
+
*/
|
|
114
|
+
// @ts-ignore
|
|
115
|
+
export function createCreateReviewRequestFromDiscriminatorValue(parseNode) {
|
|
116
|
+
return deserializeIntoCreateReviewRequest;
|
|
117
|
+
}
|
|
100
118
|
/**
|
|
101
119
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
102
120
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -403,6 +421,15 @@ export function createProxyIpRotationResponseFromDiscriminatorValue(parseNode) {
|
|
|
403
421
|
export function createProxyPingResponseFromDiscriminatorValue(parseNode) {
|
|
404
422
|
return deserializeIntoProxyPingResponse;
|
|
405
423
|
}
|
|
424
|
+
/**
|
|
425
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
426
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
427
|
+
* @returns {Review}
|
|
428
|
+
*/
|
|
429
|
+
// @ts-ignore
|
|
430
|
+
export function createReviewFromDiscriminatorValue(parseNode) {
|
|
431
|
+
return deserializeIntoReview;
|
|
432
|
+
}
|
|
406
433
|
/**
|
|
407
434
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
408
435
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -537,6 +564,24 @@ export function deserializeIntoActivity(activity = {}) {
|
|
|
537
564
|
"statusCode": n => { activity.statusCode = n.getNumberValue(); },
|
|
538
565
|
};
|
|
539
566
|
}
|
|
567
|
+
/**
|
|
568
|
+
* The deserialization information for the current model
|
|
569
|
+
* @param Announcement The instance to deserialize into.
|
|
570
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
571
|
+
*/
|
|
572
|
+
// @ts-ignore
|
|
573
|
+
export function deserializeIntoAnnouncement(announcement = {}) {
|
|
574
|
+
return {
|
|
575
|
+
"body": n => { announcement.body = n.getStringValue(); },
|
|
576
|
+
"id": n => { announcement.id = n.getGuidValue(); },
|
|
577
|
+
"imageUrl": n => { announcement.imageUrl = n.getStringValue(); },
|
|
578
|
+
"isLive": n => { announcement.isLive = n.getBooleanValue(); },
|
|
579
|
+
"linkLabel": n => { announcement.linkLabel = n.getStringValue(); },
|
|
580
|
+
"linkUrl": n => { announcement.linkUrl = n.getStringValue(); },
|
|
581
|
+
"status": n => { announcement.status = n.getEnumValue(AnnouncementStatusesObject); },
|
|
582
|
+
"title": n => { announcement.title = n.getStringValue(); },
|
|
583
|
+
};
|
|
584
|
+
}
|
|
540
585
|
/**
|
|
541
586
|
* The deserialization information for the current model
|
|
542
587
|
* @param AuthenticateCustomerRequest The instance to deserialize into.
|
|
@@ -673,6 +718,21 @@ export function deserializeIntoCreateOrganizationRequest(createOrganizationReque
|
|
|
673
718
|
"name": n => { createOrganizationRequest.name = n.getStringValue(); },
|
|
674
719
|
};
|
|
675
720
|
}
|
|
721
|
+
/**
|
|
722
|
+
* The deserialization information for the current model
|
|
723
|
+
* @param CreateReviewRequest The instance to deserialize into.
|
|
724
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
725
|
+
*/
|
|
726
|
+
// @ts-ignore
|
|
727
|
+
export function deserializeIntoCreateReviewRequest(createReviewRequest = {}) {
|
|
728
|
+
return {
|
|
729
|
+
"content": n => { createReviewRequest.content = n.getStringValue(); },
|
|
730
|
+
"customAuthorName": n => { createReviewRequest.customAuthorName = n.getStringValue(); },
|
|
731
|
+
"customerId": n => { createReviewRequest.customerId = n.getGuidValue(); },
|
|
732
|
+
"isFeatured": n => { createReviewRequest.isFeatured = n.getBooleanValue(); },
|
|
733
|
+
"rating": n => { createReviewRequest.rating = n.getNumberValue(); },
|
|
734
|
+
};
|
|
735
|
+
}
|
|
676
736
|
/**
|
|
677
737
|
* The deserialization information for the current model
|
|
678
738
|
* @param CurrencyAmount The instance to deserialize into.
|
|
@@ -874,15 +934,12 @@ export function deserializeIntoOrder(order = {}) {
|
|
|
874
934
|
"allocationId": n => { order.allocationId = n.getGuidValue(); },
|
|
875
935
|
"billingCycle": n => { order.billingCycle = n.getEnumValue(BillingCyclesObject); },
|
|
876
936
|
"completePaymentUrl": n => { order.completePaymentUrl = n.getStringValue(); },
|
|
877
|
-
"consumerRef": n => { order.consumerRef = n.getStringValue(); },
|
|
878
937
|
"currency": n => { order.currency = n.getStringValue(); },
|
|
879
938
|
"customerId": n => { order.customerId = n.getGuidValue(); },
|
|
880
939
|
"expiresAt": n => { order.expiresAt = n.getDateValue(); },
|
|
881
940
|
"id": n => { order.id = n.getGuidValue(); },
|
|
882
941
|
"isInGracePeriod": n => { order.isInGracePeriod = n.getBooleanValue(); },
|
|
883
|
-
"ispId": n => { order.ispId = n.getGuidValue(); },
|
|
884
942
|
"isTrial": n => { order.isTrial = n.getBooleanValue(); },
|
|
885
|
-
"locationId": n => { order.locationId = n.getGuidValue(); },
|
|
886
943
|
"paymentMethod": n => { order.paymentMethod = n.getEnumValue(PaymentMethodsObject); },
|
|
887
944
|
"productId": n => { order.productId = n.getGuidValue(); },
|
|
888
945
|
"quantity": n => { order.quantity = n.getNumberValue(); },
|
|
@@ -1071,6 +1128,7 @@ export function deserializeIntoPaymentProcessor(paymentProcessor = {}) {
|
|
|
1071
1128
|
"fields": n => { paymentProcessor.fields = n.getCollectionOfObjectValues(createProcessorFieldSchemaFromDiscriminatorValue); },
|
|
1072
1129
|
"id": n => { paymentProcessor.id = n.getGuidValue(); },
|
|
1073
1130
|
"organizationId": n => { paymentProcessor.organizationId = n.getGuidValue(); },
|
|
1131
|
+
"paymentMethod": n => { paymentProcessor.paymentMethod = n.getEnumValue(PaymentMethodsObject); },
|
|
1074
1132
|
"processor": n => { paymentProcessor.processor = n.getEnumValue(PaymentProcessorsObject); },
|
|
1075
1133
|
"values": n => { paymentProcessor.values = n.getObjectValue(createPaymentProcessor_valuesFromDiscriminatorValue); },
|
|
1076
1134
|
};
|
|
@@ -1192,8 +1250,29 @@ export function deserializeIntoProxyIpRotationResponse(proxyIpRotationResponse =
|
|
|
1192
1250
|
// @ts-ignore
|
|
1193
1251
|
export function deserializeIntoProxyPingResponse(proxyPingResponse = {}) {
|
|
1194
1252
|
return {
|
|
1253
|
+
"exitIp": n => { proxyPingResponse.exitIp = n.getStringValue(); },
|
|
1195
1254
|
"latencyMs": n => { proxyPingResponse.latencyMs = n.getNumberValue(); },
|
|
1196
1255
|
"reachable": n => { proxyPingResponse.reachable = n.getBooleanValue(); },
|
|
1256
|
+
"statusCode": n => { proxyPingResponse.statusCode = n.getNumberValue(); },
|
|
1257
|
+
};
|
|
1258
|
+
}
|
|
1259
|
+
/**
|
|
1260
|
+
* The deserialization information for the current model
|
|
1261
|
+
* @param Review The instance to deserialize into.
|
|
1262
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
1263
|
+
*/
|
|
1264
|
+
// @ts-ignore
|
|
1265
|
+
export function deserializeIntoReview(review = {}) {
|
|
1266
|
+
return {
|
|
1267
|
+
"authorName": n => { review.authorName = n.getStringValue(); },
|
|
1268
|
+
"content": n => { review.content = n.getStringValue(); },
|
|
1269
|
+
"customAuthorName": n => { review.customAuthorName = n.getStringValue(); },
|
|
1270
|
+
"customerId": n => { review.customerId = n.getGuidValue(); },
|
|
1271
|
+
"id": n => { review.id = n.getGuidValue(); },
|
|
1272
|
+
"isFeatured": n => { review.isFeatured = n.getBooleanValue(); },
|
|
1273
|
+
"isPending": n => { review.isPending = n.getBooleanValue(); },
|
|
1274
|
+
"organizationId": n => { review.organizationId = n.getGuidValue(); },
|
|
1275
|
+
"rating": n => { review.rating = n.getNumberValue(); },
|
|
1197
1276
|
};
|
|
1198
1277
|
}
|
|
1199
1278
|
/**
|
|
@@ -1377,6 +1456,27 @@ export function serializeActivity(writer, activity = {}, isSerializingDerivedTyp
|
|
|
1377
1456
|
writer.writeNumberValue("statusCode", activity.statusCode);
|
|
1378
1457
|
writer.writeAdditionalData(activity.additionalData);
|
|
1379
1458
|
}
|
|
1459
|
+
/**
|
|
1460
|
+
* Serializes information the current object
|
|
1461
|
+
* @param Announcement The instance to serialize from.
|
|
1462
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
1463
|
+
* @param writer Serialization writer to use to serialize this model
|
|
1464
|
+
*/
|
|
1465
|
+
// @ts-ignore
|
|
1466
|
+
export function serializeAnnouncement(writer, announcement = {}, isSerializingDerivedType = false) {
|
|
1467
|
+
if (!announcement || isSerializingDerivedType) {
|
|
1468
|
+
return;
|
|
1469
|
+
}
|
|
1470
|
+
writer.writeStringValue("body", announcement.body);
|
|
1471
|
+
writer.writeGuidValue("id", announcement.id);
|
|
1472
|
+
writer.writeStringValue("imageUrl", announcement.imageUrl);
|
|
1473
|
+
writer.writeBooleanValue("isLive", announcement.isLive);
|
|
1474
|
+
writer.writeStringValue("linkLabel", announcement.linkLabel);
|
|
1475
|
+
writer.writeStringValue("linkUrl", announcement.linkUrl);
|
|
1476
|
+
writer.writeEnumValue("status", announcement.status);
|
|
1477
|
+
writer.writeStringValue("title", announcement.title);
|
|
1478
|
+
writer.writeAdditionalData(announcement.additionalData);
|
|
1479
|
+
}
|
|
1380
1480
|
/**
|
|
1381
1481
|
* Serializes information the current object
|
|
1382
1482
|
* @param AuthenticateCustomerRequest The instance to serialize from.
|
|
@@ -1544,6 +1644,24 @@ export function serializeCreateOrganizationRequest(writer, createOrganizationReq
|
|
|
1544
1644
|
writer.writeStringValue("name", createOrganizationRequest.name);
|
|
1545
1645
|
writer.writeAdditionalData(createOrganizationRequest.additionalData);
|
|
1546
1646
|
}
|
|
1647
|
+
/**
|
|
1648
|
+
* Serializes information the current object
|
|
1649
|
+
* @param CreateReviewRequest The instance to serialize from.
|
|
1650
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
1651
|
+
* @param writer Serialization writer to use to serialize this model
|
|
1652
|
+
*/
|
|
1653
|
+
// @ts-ignore
|
|
1654
|
+
export function serializeCreateReviewRequest(writer, createReviewRequest = {}, isSerializingDerivedType = false) {
|
|
1655
|
+
if (!createReviewRequest || isSerializingDerivedType) {
|
|
1656
|
+
return;
|
|
1657
|
+
}
|
|
1658
|
+
writer.writeStringValue("content", createReviewRequest.content);
|
|
1659
|
+
writer.writeStringValue("customAuthorName", createReviewRequest.customAuthorName);
|
|
1660
|
+
writer.writeGuidValue("customerId", createReviewRequest.customerId);
|
|
1661
|
+
writer.writeBooleanValue("isFeatured", createReviewRequest.isFeatured);
|
|
1662
|
+
writer.writeNumberValue("rating", createReviewRequest.rating);
|
|
1663
|
+
writer.writeAdditionalData(createReviewRequest.additionalData);
|
|
1664
|
+
}
|
|
1547
1665
|
/**
|
|
1548
1666
|
* Serializes information the current object
|
|
1549
1667
|
* @param CurrencyAmount The instance to serialize from.
|
|
@@ -1789,15 +1907,12 @@ export function serializeOrder(writer, order = {}, isSerializingDerivedType = fa
|
|
|
1789
1907
|
writer.writeGuidValue("allocationId", order.allocationId);
|
|
1790
1908
|
writer.writeEnumValue("billingCycle", order.billingCycle);
|
|
1791
1909
|
writer.writeStringValue("completePaymentUrl", order.completePaymentUrl);
|
|
1792
|
-
writer.writeStringValue("consumerRef", order.consumerRef);
|
|
1793
1910
|
writer.writeStringValue("currency", order.currency);
|
|
1794
1911
|
writer.writeGuidValue("customerId", order.customerId);
|
|
1795
1912
|
writer.writeDateValue("expiresAt", order.expiresAt);
|
|
1796
1913
|
writer.writeGuidValue("id", order.id);
|
|
1797
1914
|
writer.writeBooleanValue("isInGracePeriod", order.isInGracePeriod);
|
|
1798
|
-
writer.writeGuidValue("ispId", order.ispId);
|
|
1799
1915
|
writer.writeBooleanValue("isTrial", order.isTrial);
|
|
1800
|
-
writer.writeGuidValue("locationId", order.locationId);
|
|
1801
1916
|
writer.writeEnumValue("paymentMethod", order.paymentMethod);
|
|
1802
1917
|
writer.writeGuidValue("productId", order.productId);
|
|
1803
1918
|
writer.writeNumberValue("quantity", order.quantity);
|
|
@@ -2022,6 +2137,7 @@ export function serializePaymentProcessor(writer, paymentProcessor = {}, isSeria
|
|
|
2022
2137
|
writer.writeCollectionOfObjectValues("fields", paymentProcessor.fields, serializeProcessorFieldSchema);
|
|
2023
2138
|
writer.writeGuidValue("id", paymentProcessor.id);
|
|
2024
2139
|
writer.writeGuidValue("organizationId", paymentProcessor.organizationId);
|
|
2140
|
+
writer.writeEnumValue("paymentMethod", paymentProcessor.paymentMethod);
|
|
2025
2141
|
writer.writeEnumValue("processor", paymentProcessor.processor);
|
|
2026
2142
|
writer.writeObjectValue("values", paymentProcessor.values, serializePaymentProcessor_values);
|
|
2027
2143
|
writer.writeAdditionalData(paymentProcessor.additionalData);
|
|
@@ -2168,10 +2284,34 @@ export function serializeProxyPingResponse(writer, proxyPingResponse = {}, isSer
|
|
|
2168
2284
|
if (!proxyPingResponse || isSerializingDerivedType) {
|
|
2169
2285
|
return;
|
|
2170
2286
|
}
|
|
2287
|
+
writer.writeStringValue("exitIp", proxyPingResponse.exitIp);
|
|
2171
2288
|
writer.writeNumberValue("latencyMs", proxyPingResponse.latencyMs);
|
|
2172
2289
|
writer.writeBooleanValue("reachable", proxyPingResponse.reachable);
|
|
2290
|
+
writer.writeNumberValue("statusCode", proxyPingResponse.statusCode);
|
|
2173
2291
|
writer.writeAdditionalData(proxyPingResponse.additionalData);
|
|
2174
2292
|
}
|
|
2293
|
+
/**
|
|
2294
|
+
* Serializes information the current object
|
|
2295
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
2296
|
+
* @param Review The instance to serialize from.
|
|
2297
|
+
* @param writer Serialization writer to use to serialize this model
|
|
2298
|
+
*/
|
|
2299
|
+
// @ts-ignore
|
|
2300
|
+
export function serializeReview(writer, review = {}, isSerializingDerivedType = false) {
|
|
2301
|
+
if (!review || isSerializingDerivedType) {
|
|
2302
|
+
return;
|
|
2303
|
+
}
|
|
2304
|
+
writer.writeStringValue("authorName", review.authorName);
|
|
2305
|
+
writer.writeStringValue("content", review.content);
|
|
2306
|
+
writer.writeStringValue("customAuthorName", review.customAuthorName);
|
|
2307
|
+
writer.writeGuidValue("customerId", review.customerId);
|
|
2308
|
+
writer.writeGuidValue("id", review.id);
|
|
2309
|
+
writer.writeBooleanValue("isFeatured", review.isFeatured);
|
|
2310
|
+
writer.writeBooleanValue("isPending", review.isPending);
|
|
2311
|
+
writer.writeGuidValue("organizationId", review.organizationId);
|
|
2312
|
+
writer.writeNumberValue("rating", review.rating);
|
|
2313
|
+
writer.writeAdditionalData(review.additionalData);
|
|
2314
|
+
}
|
|
2175
2315
|
/**
|
|
2176
2316
|
* Serializes information the current object
|
|
2177
2317
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
@@ -2374,6 +2514,11 @@ export function serializeUpdateProxyIpRotationRequest(writer, updateProxyIpRotat
|
|
|
2374
2514
|
writer.writeNumberValue("delaySeconds", updateProxyIpRotationRequest.delaySeconds);
|
|
2375
2515
|
writer.writeAdditionalData(updateProxyIpRotationRequest.additionalData);
|
|
2376
2516
|
}
|
|
2517
|
+
export const AnnouncementStatusesObject = {
|
|
2518
|
+
Draft: "Draft",
|
|
2519
|
+
Published: "Published",
|
|
2520
|
+
Archived: "Archived",
|
|
2521
|
+
};
|
|
2377
2522
|
export const BillingCyclesObject = {
|
|
2378
2523
|
Daily: "Daily",
|
|
2379
2524
|
Weekly: "Weekly",
|
|
@@ -2397,11 +2542,14 @@ export const NullableOfBillingCyclesObject = {
|
|
|
2397
2542
|
Monthly: "Monthly",
|
|
2398
2543
|
Quarterly: "Quarterly",
|
|
2399
2544
|
Yearly: "Yearly",
|
|
2545
|
+
OpenapiJsonNullSentinelValue2BF936000FE44250987AE5DDB203E464: "openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464",
|
|
2400
2546
|
};
|
|
2401
2547
|
export const NullableOfPaymentMethodsObject = {
|
|
2402
2548
|
Balance: "Balance",
|
|
2403
2549
|
CreditCard: "CreditCard",
|
|
2404
2550
|
Cryptocurrency: "Cryptocurrency",
|
|
2551
|
+
Debug: "Debug",
|
|
2552
|
+
OpenapiJsonNullSentinelValue2BF936000FE44250987AE5DDB203E464: "openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464",
|
|
2405
2553
|
};
|
|
2406
2554
|
export const OrderStatusesObject = {
|
|
2407
2555
|
Pending: "Pending",
|
|
@@ -2417,6 +2565,7 @@ export const PaymentMethodsObject = {
|
|
|
2417
2565
|
Balance: "Balance",
|
|
2418
2566
|
CreditCard: "CreditCard",
|
|
2419
2567
|
Cryptocurrency: "Cryptocurrency",
|
|
2568
|
+
Debug: "Debug",
|
|
2420
2569
|
};
|
|
2421
2570
|
export const PaymentProcessorsObject = {
|
|
2422
2571
|
Heleket: "Heleket",
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type ActivitiesRequestBuilder } from './activities/index.js';
|
|
2
|
+
import { type AnnouncementsRequestBuilder } from './announcements/index.js';
|
|
2
3
|
import { type CustomersRequestBuilder } from './customers/index.js';
|
|
3
4
|
import { type IncidentsRequestBuilder } from './incidents/index.js';
|
|
4
5
|
import { type IspsRequestBuilder } from './isps/index.js';
|
|
@@ -8,6 +9,7 @@ import { type OrganizationsRequestBuilder } from './organizations/index.js';
|
|
|
8
9
|
import { type PaymentProcessorsRequestBuilder } from './paymentProcessors/index.js';
|
|
9
10
|
import { type ProductsRequestBuilder } from './products/index.js';
|
|
10
11
|
import { type ProxiesRequestBuilder } from './proxies/index.js';
|
|
12
|
+
import { type ReviewsRequestBuilder } from './reviews/index.js';
|
|
11
13
|
import { type SystemAlertRequestBuilder } from './systemAlert/index.js';
|
|
12
14
|
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestAdapter } from '@microsoft/kiota-abstractions';
|
|
13
15
|
/**
|
|
@@ -23,6 +25,10 @@ export interface PartnerApiClient extends BaseRequestBuilder<PartnerApiClient> {
|
|
|
23
25
|
* The activities property
|
|
24
26
|
*/
|
|
25
27
|
get activities(): ActivitiesRequestBuilder;
|
|
28
|
+
/**
|
|
29
|
+
* The announcements property
|
|
30
|
+
*/
|
|
31
|
+
get announcements(): AnnouncementsRequestBuilder;
|
|
26
32
|
/**
|
|
27
33
|
* The customers property
|
|
28
34
|
*/
|
|
@@ -59,6 +65,10 @@ export interface PartnerApiClient extends BaseRequestBuilder<PartnerApiClient> {
|
|
|
59
65
|
* The proxies property
|
|
60
66
|
*/
|
|
61
67
|
get proxies(): ProxiesRequestBuilder;
|
|
68
|
+
/**
|
|
69
|
+
* The reviews property
|
|
70
|
+
*/
|
|
71
|
+
get reviews(): ReviewsRequestBuilder;
|
|
62
72
|
/**
|
|
63
73
|
* The systemAlert property
|
|
64
74
|
*/
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
// @ts-ignore
|
|
5
5
|
import { ActivitiesRequestBuilderRequestsMetadata } from './activities/index.js';
|
|
6
6
|
// @ts-ignore
|
|
7
|
+
import { AnnouncementsRequestBuilderRequestsMetadata } from './announcements/index.js';
|
|
8
|
+
// @ts-ignore
|
|
7
9
|
import { CustomersRequestBuilderNavigationMetadata, CustomersRequestBuilderRequestsMetadata } from './customers/index.js';
|
|
8
10
|
// @ts-ignore
|
|
9
11
|
import { IncidentsRequestBuilderNavigationMetadata, IncidentsRequestBuilderRequestsMetadata } from './incidents/index.js';
|
|
@@ -22,6 +24,8 @@ import { ProductsRequestBuilderRequestsMetadata } from './products/index.js';
|
|
|
22
24
|
// @ts-ignore
|
|
23
25
|
import { ProxiesRequestBuilderNavigationMetadata, ProxiesRequestBuilderRequestsMetadata } from './proxies/index.js';
|
|
24
26
|
// @ts-ignore
|
|
27
|
+
import { ReviewsRequestBuilderNavigationMetadata, ReviewsRequestBuilderRequestsMetadata } from './reviews/index.js';
|
|
28
|
+
// @ts-ignore
|
|
25
29
|
import { SystemAlertRequestBuilderRequestsMetadata } from './systemAlert/index.js';
|
|
26
30
|
// @ts-ignore
|
|
27
31
|
import { apiClientProxifier } from '@microsoft/kiota-abstractions';
|
|
@@ -75,6 +79,9 @@ export const PartnerApiClientNavigationMetadata = {
|
|
|
75
79
|
activities: {
|
|
76
80
|
requestsMetadata: ActivitiesRequestBuilderRequestsMetadata,
|
|
77
81
|
},
|
|
82
|
+
announcements: {
|
|
83
|
+
requestsMetadata: AnnouncementsRequestBuilderRequestsMetadata,
|
|
84
|
+
},
|
|
78
85
|
customers: {
|
|
79
86
|
requestsMetadata: CustomersRequestBuilderRequestsMetadata,
|
|
80
87
|
navigationMetadata: CustomersRequestBuilderNavigationMetadata,
|
|
@@ -107,6 +114,10 @@ export const PartnerApiClientNavigationMetadata = {
|
|
|
107
114
|
requestsMetadata: ProxiesRequestBuilderRequestsMetadata,
|
|
108
115
|
navigationMetadata: ProxiesRequestBuilderNavigationMetadata,
|
|
109
116
|
},
|
|
117
|
+
reviews: {
|
|
118
|
+
requestsMetadata: ReviewsRequestBuilderRequestsMetadata,
|
|
119
|
+
navigationMetadata: ReviewsRequestBuilderNavigationMetadata,
|
|
120
|
+
},
|
|
110
121
|
systemAlert: {
|
|
111
122
|
requestsMetadata: SystemAlertRequestBuilderRequestsMetadata,
|
|
112
123
|
},
|
|
@@ -16,7 +16,7 @@ export interface CredentialsRequestBuilder extends BaseRequestBuilder<Credential
|
|
|
16
16
|
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
17
17
|
* @returns {Promise<Proxy>}
|
|
18
18
|
*/
|
|
19
|
-
|
|
19
|
+
put(body: ChangeProxyCredentialsRequest, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<Proxy | undefined>;
|
|
20
20
|
/**
|
|
21
21
|
* Returns the credentials currently in effect on an allocated proxy, fetched live from the Manager.
|
|
22
22
|
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
@@ -29,7 +29,7 @@ export interface CredentialsRequestBuilder extends BaseRequestBuilder<Credential
|
|
|
29
29
|
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
30
30
|
* @returns {RequestInformation}
|
|
31
31
|
*/
|
|
32
|
-
|
|
32
|
+
toPutRequestInformation(body: ChangeProxyCredentialsRequest, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
35
|
* Uri template for the request builder.
|
|
@@ -17,7 +17,7 @@ export const CredentialsRequestBuilderRequestsMetadata = {
|
|
|
17
17
|
adapterMethodName: "send",
|
|
18
18
|
responseBodyFactory: createProxyCredentialResponseFromDiscriminatorValue,
|
|
19
19
|
},
|
|
20
|
-
|
|
20
|
+
put: {
|
|
21
21
|
uriTemplate: CredentialsRequestBuilderUriTemplate,
|
|
22
22
|
responseBodyContentType: "application/json, text/plain;q=0.9",
|
|
23
23
|
adapterMethodName: "send",
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { type CreateReviewRequest, type Review } from '../models/index.js';
|
|
2
|
+
import { type WithReviewItemRequestBuilder } from './item/index.js';
|
|
3
|
+
import { type BaseRequestBuilder, type Guid, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
|
|
4
|
+
/**
|
|
5
|
+
* Builds and executes requests for operations under /reviews
|
|
6
|
+
*/
|
|
7
|
+
export interface ReviewsRequestBuilder extends BaseRequestBuilder<ReviewsRequestBuilder> {
|
|
8
|
+
/**
|
|
9
|
+
* Gets an item from the ApiSdk.reviews.item collection
|
|
10
|
+
* @param reviewId Unique identifier of the item
|
|
11
|
+
* @returns {WithReviewItemRequestBuilder}
|
|
12
|
+
*/
|
|
13
|
+
byReviewId(reviewId: Guid): WithReviewItemRequestBuilder;
|
|
14
|
+
/**
|
|
15
|
+
* Returns the reviews left for your organization, most recent first.
|
|
16
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
17
|
+
* @returns {Promise<Review[]>}
|
|
18
|
+
*/
|
|
19
|
+
get(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<Review[] | undefined>;
|
|
20
|
+
/**
|
|
21
|
+
* Adds a review for your organization, optionally tied to one of your customers.
|
|
22
|
+
* @param body The request body
|
|
23
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
24
|
+
* @returns {Promise<Review>}
|
|
25
|
+
*/
|
|
26
|
+
post(body: CreateReviewRequest, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<Review | undefined>;
|
|
27
|
+
/**
|
|
28
|
+
* Returns the reviews left for your organization, most recent first.
|
|
29
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
30
|
+
* @returns {RequestInformation}
|
|
31
|
+
*/
|
|
32
|
+
toGetRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
33
|
+
/**
|
|
34
|
+
* Adds a review for your organization, optionally tied to one of your customers.
|
|
35
|
+
* @param body The request body
|
|
36
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
37
|
+
* @returns {RequestInformation}
|
|
38
|
+
*/
|
|
39
|
+
toPostRequestInformation(body: CreateReviewRequest, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Uri template for the request builder.
|
|
43
|
+
*/
|
|
44
|
+
export declare const ReviewsRequestBuilderUriTemplate = "{+baseurl}/reviews";
|
|
45
|
+
/**
|
|
46
|
+
* Metadata for all the navigation properties in the request builder.
|
|
47
|
+
*/
|
|
48
|
+
export declare const ReviewsRequestBuilderNavigationMetadata: Record<Exclude<keyof ReviewsRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
|
|
49
|
+
/**
|
|
50
|
+
* Metadata for all the requests in the request builder.
|
|
51
|
+
*/
|
|
52
|
+
export declare const ReviewsRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
// Generated by Microsoft Kiota
|
|
4
|
+
// @ts-ignore
|
|
5
|
+
import { createReviewFromDiscriminatorValue, serializeCreateReviewRequest } from '../models/index.js';
|
|
6
|
+
// @ts-ignore
|
|
7
|
+
import { WithReviewItemRequestBuilderNavigationMetadata, WithReviewItemRequestBuilderRequestsMetadata } from './item/index.js';
|
|
8
|
+
/**
|
|
9
|
+
* Uri template for the request builder.
|
|
10
|
+
*/
|
|
11
|
+
export const ReviewsRequestBuilderUriTemplate = "{+baseurl}/reviews";
|
|
12
|
+
/**
|
|
13
|
+
* Metadata for all the navigation properties in the request builder.
|
|
14
|
+
*/
|
|
15
|
+
export const ReviewsRequestBuilderNavigationMetadata = {
|
|
16
|
+
byReviewId: {
|
|
17
|
+
requestsMetadata: WithReviewItemRequestBuilderRequestsMetadata,
|
|
18
|
+
navigationMetadata: WithReviewItemRequestBuilderNavigationMetadata,
|
|
19
|
+
pathParametersMappings: ["reviewId"],
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Metadata for all the requests in the request builder.
|
|
24
|
+
*/
|
|
25
|
+
export const ReviewsRequestBuilderRequestsMetadata = {
|
|
26
|
+
get: {
|
|
27
|
+
uriTemplate: ReviewsRequestBuilderUriTemplate,
|
|
28
|
+
responseBodyContentType: "text/plain;q=0.9",
|
|
29
|
+
adapterMethodName: "sendCollection",
|
|
30
|
+
responseBodyFactory: createReviewFromDiscriminatorValue,
|
|
31
|
+
},
|
|
32
|
+
post: {
|
|
33
|
+
uriTemplate: ReviewsRequestBuilderUriTemplate,
|
|
34
|
+
responseBodyContentType: "application/json, text/plain;q=0.9",
|
|
35
|
+
adapterMethodName: "send",
|
|
36
|
+
responseBodyFactory: createReviewFromDiscriminatorValue,
|
|
37
|
+
requestBodyContentType: "application/json",
|
|
38
|
+
requestBodySerializer: serializeCreateReviewRequest,
|
|
39
|
+
requestInformationContentSetMethod: "setContentFromParsable",
|
|
40
|
+
},
|
|
41
|
+
};
|
|
42
|
+
/* tslint:enable */
|
|
43
|
+
/* eslint-enable */
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type Review } from '../../../models/index.js';
|
|
2
|
+
import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
|
|
3
|
+
/**
|
|
4
|
+
* Builds and executes requests for operations under /reviews/{reviewId}/approve
|
|
5
|
+
*/
|
|
6
|
+
export interface ApproveRequestBuilder extends BaseRequestBuilder<ApproveRequestBuilder> {
|
|
7
|
+
/**
|
|
8
|
+
* Approves a pending review so it shows publicly. Rejecting a review is a delete instead.
|
|
9
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
10
|
+
* @returns {Promise<Review>}
|
|
11
|
+
*/
|
|
12
|
+
post(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<Review | undefined>;
|
|
13
|
+
/**
|
|
14
|
+
* Approves a pending review so it shows publicly. Rejecting a review is a delete instead.
|
|
15
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
16
|
+
* @returns {RequestInformation}
|
|
17
|
+
*/
|
|
18
|
+
toPostRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Uri template for the request builder.
|
|
22
|
+
*/
|
|
23
|
+
export declare const ApproveRequestBuilderUriTemplate = "{+baseurl}/reviews/{reviewId}/approve";
|
|
24
|
+
/**
|
|
25
|
+
* Metadata for all the requests in the request builder.
|
|
26
|
+
*/
|
|
27
|
+
export declare const ApproveRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
// Generated by Microsoft Kiota
|
|
4
|
+
// @ts-ignore
|
|
5
|
+
import { createReviewFromDiscriminatorValue } from '../../../models/index.js';
|
|
6
|
+
/**
|
|
7
|
+
* Uri template for the request builder.
|
|
8
|
+
*/
|
|
9
|
+
export const ApproveRequestBuilderUriTemplate = "{+baseurl}/reviews/{reviewId}/approve";
|
|
10
|
+
/**
|
|
11
|
+
* Metadata for all the requests in the request builder.
|
|
12
|
+
*/
|
|
13
|
+
export const ApproveRequestBuilderRequestsMetadata = {
|
|
14
|
+
post: {
|
|
15
|
+
uriTemplate: ApproveRequestBuilderUriTemplate,
|
|
16
|
+
responseBodyContentType: "application/json, text/plain;q=0.9",
|
|
17
|
+
adapterMethodName: "send",
|
|
18
|
+
responseBodyFactory: createReviewFromDiscriminatorValue,
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
/* tslint:enable */
|
|
22
|
+
/* eslint-enable */
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { type ApproveRequestBuilder } from './approve/index.js';
|
|
2
|
+
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
|
|
3
|
+
/**
|
|
4
|
+
* Builds and executes requests for operations under /reviews/{reviewId}
|
|
5
|
+
*/
|
|
6
|
+
export interface WithReviewItemRequestBuilder extends BaseRequestBuilder<WithReviewItemRequestBuilder> {
|
|
7
|
+
/**
|
|
8
|
+
* The approve property
|
|
9
|
+
*/
|
|
10
|
+
get approve(): ApproveRequestBuilder;
|
|
11
|
+
/**
|
|
12
|
+
* Deletes a review belonging to your organization.
|
|
13
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
14
|
+
* @returns {Promise<ArrayBuffer>}
|
|
15
|
+
*/
|
|
16
|
+
delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<ArrayBuffer | undefined>;
|
|
17
|
+
/**
|
|
18
|
+
* Deletes a review belonging to your organization.
|
|
19
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
20
|
+
* @returns {RequestInformation}
|
|
21
|
+
*/
|
|
22
|
+
toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Uri template for the request builder.
|
|
26
|
+
*/
|
|
27
|
+
export declare const WithReviewItemRequestBuilderUriTemplate = "{+baseurl}/reviews/{reviewId}";
|
|
28
|
+
/**
|
|
29
|
+
* Metadata for all the navigation properties in the request builder.
|
|
30
|
+
*/
|
|
31
|
+
export declare const WithReviewItemRequestBuilderNavigationMetadata: Record<Exclude<keyof WithReviewItemRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
|
|
32
|
+
/**
|
|
33
|
+
* Metadata for all the requests in the request builder.
|
|
34
|
+
*/
|
|
35
|
+
export declare const WithReviewItemRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
// Generated by Microsoft Kiota
|
|
4
|
+
// @ts-ignore
|
|
5
|
+
import { ApproveRequestBuilderRequestsMetadata } from './approve/index.js';
|
|
6
|
+
/**
|
|
7
|
+
* Uri template for the request builder.
|
|
8
|
+
*/
|
|
9
|
+
export const WithReviewItemRequestBuilderUriTemplate = "{+baseurl}/reviews/{reviewId}";
|
|
10
|
+
/**
|
|
11
|
+
* Metadata for all the navigation properties in the request builder.
|
|
12
|
+
*/
|
|
13
|
+
export const WithReviewItemRequestBuilderNavigationMetadata = {
|
|
14
|
+
approve: {
|
|
15
|
+
requestsMetadata: ApproveRequestBuilderRequestsMetadata,
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Metadata for all the requests in the request builder.
|
|
20
|
+
*/
|
|
21
|
+
export const WithReviewItemRequestBuilderRequestsMetadata = {
|
|
22
|
+
delete: {
|
|
23
|
+
uriTemplate: WithReviewItemRequestBuilderUriTemplate,
|
|
24
|
+
adapterMethodName: "sendPrimitive",
|
|
25
|
+
responseBodyFactory: "ArrayBuffer",
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
/* tslint:enable */
|
|
29
|
+
/* eslint-enable */
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -2,3 +2,6 @@ export { createPartnerClient } from "./partnerClient.js";
|
|
|
2
2
|
export { ApiKeyAuthenticationProvider } from "./apiKeyAuthenticationProvider.js";
|
|
3
3
|
// Re-export the generated models (Customer, Order, Proxy, …) so consumers import them from the package root.
|
|
4
4
|
export * from "./generated/models/index.js";
|
|
5
|
+
// Plain<T> / toPlain(): turn a generated model into its plain-data shape (no hand-written DTOs, safe for React
|
|
6
|
+
// Client Components).
|
|
7
|
+
export { toPlain } from "./plain.js";
|
package/dist/plain.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { AdditionalDataHolder, Parsable } from "@microsoft/kiota-abstractions";
|
|
2
|
+
type KiotaParts = keyof AdditionalDataHolder | keyof Parsable;
|
|
3
|
+
/**
|
|
4
|
+
* The plain-data shape of a generated model: same fields, minus Kiota's `additionalData` and serialization
|
|
5
|
+
* methods. Use it so you never have to hand-write a DTO — `Plain<Location>` is exactly the model's data fields,
|
|
6
|
+
* and stays in sync when the API adds one.
|
|
7
|
+
*/
|
|
8
|
+
export type Plain<T> = Omit<T, KiotaParts>;
|
|
9
|
+
/**
|
|
10
|
+
* Returns a plain copy of a generated model — the data fields only, with `additionalData` and the Parsable
|
|
11
|
+
* methods dropped — so it can cross a React Server/Client boundary (Next.js "Only plain objects" error),
|
|
12
|
+
* be JSON-serialized, or be persisted without dragging the Kiota machinery along.
|
|
13
|
+
*/
|
|
14
|
+
export declare function toPlain<T extends AdditionalDataHolder>(model: T): Plain<T>;
|
|
15
|
+
export {};
|
package/dist/plain.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns a plain copy of a generated model — the data fields only, with `additionalData` and the Parsable
|
|
3
|
+
* methods dropped — so it can cross a React Server/Client boundary (Next.js "Only plain objects" error),
|
|
4
|
+
* be JSON-serialized, or be persisted without dragging the Kiota machinery along.
|
|
5
|
+
*/
|
|
6
|
+
export function toPlain(model) {
|
|
7
|
+
// Spread copies only own enumerable properties (the data fields + additionalData); Parsable's methods live on
|
|
8
|
+
// the type, not as own enumerable props, so they're already gone. Then drop additionalData.
|
|
9
|
+
const { additionalData: _additionalData, ...rest } = model;
|
|
10
|
+
return rest;
|
|
11
|
+
}
|