@23blocks/block-forms 3.1.3 → 3.1.4
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.esm.js
CHANGED
|
@@ -483,7 +483,7 @@ function createLandingsService(transport, _config) {
|
|
|
483
483
|
const response = await transport.get(`/landings/${formUniqueId}/instances/${uniqueId}`);
|
|
484
484
|
return decodeOne(response, landingMapper);
|
|
485
485
|
},
|
|
486
|
-
async
|
|
486
|
+
async submit (formUniqueId, data) {
|
|
487
487
|
const response = await transport.post(`/landings/${formUniqueId}/instances`, {
|
|
488
488
|
landing_instance: {
|
|
489
489
|
email: data.email,
|
|
@@ -558,7 +558,7 @@ function createSubscriptionsService(transport, _config) {
|
|
|
558
558
|
const response = await transport.get(`/subscriptions/${formUniqueId}/instances/${uniqueId}`);
|
|
559
559
|
return decodeOne(response, subscriptionMapper);
|
|
560
560
|
},
|
|
561
|
-
async
|
|
561
|
+
async submit (formUniqueId, data) {
|
|
562
562
|
const response = await transport.post(`/subscriptions/${formUniqueId}/instances`, {
|
|
563
563
|
subscription: {
|
|
564
564
|
email: data.email,
|
|
@@ -3,7 +3,7 @@ import type { Landing, CreateLandingRequest, UpdateLandingRequest, ListLandingsP
|
|
|
3
3
|
export interface LandingsService {
|
|
4
4
|
list(formUniqueId: string, params?: ListLandingsParams): Promise<PageResult<Landing>>;
|
|
5
5
|
get(formUniqueId: string, uniqueId: string): Promise<Landing>;
|
|
6
|
-
|
|
6
|
+
submit(formUniqueId: string, data: CreateLandingRequest): Promise<Landing>;
|
|
7
7
|
update(formUniqueId: string, uniqueId: string, data: UpdateLandingRequest): Promise<Landing>;
|
|
8
8
|
delete(formUniqueId: string, uniqueId: string): Promise<void>;
|
|
9
9
|
}
|
|
@@ -3,7 +3,7 @@ import type { Subscription, CreateSubscriptionRequest, UpdateSubscriptionRequest
|
|
|
3
3
|
export interface SubscriptionsService {
|
|
4
4
|
list(formUniqueId: string, params?: ListSubscriptionsParams): Promise<PageResult<Subscription>>;
|
|
5
5
|
get(formUniqueId: string, uniqueId: string): Promise<Subscription>;
|
|
6
|
-
|
|
6
|
+
submit(formUniqueId: string, data: CreateSubscriptionRequest): Promise<Subscription>;
|
|
7
7
|
update(formUniqueId: string, uniqueId: string, data: UpdateSubscriptionRequest): Promise<Subscription>;
|
|
8
8
|
delete(formUniqueId: string, uniqueId: string): Promise<void>;
|
|
9
9
|
}
|
package/package.json
CHANGED