@epilot/sdk 2.7.5 → 2.7.7
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/LICENSE +21 -0
- package/definitions/blueprint-manifest-runtime.json +1 -1
- package/definitions/blueprint-manifest.json +744 -20
- package/definitions/targeting-runtime.json +1 -1
- package/definitions/targeting.json +201 -7
- package/dist/apis/access-token.cjs +6 -6
- package/dist/apis/access-token.js +1 -1
- package/dist/apis/address-suggestions.cjs +6 -6
- package/dist/apis/address-suggestions.js +1 -1
- package/dist/apis/address.cjs +6 -6
- package/dist/apis/address.js +1 -1
- package/dist/apis/ai-agents.cjs +6 -6
- package/dist/apis/ai-agents.js +1 -1
- package/dist/apis/app.cjs +6 -6
- package/dist/apis/app.js +1 -1
- package/dist/apis/audit-logs.cjs +6 -6
- package/dist/apis/audit-logs.js +1 -1
- package/dist/apis/automation.cjs +6 -6
- package/dist/apis/automation.js +1 -1
- package/dist/apis/billing.cjs +6 -6
- package/dist/apis/billing.js +1 -1
- package/dist/apis/blueprint-manifest.cjs +8 -8
- package/dist/apis/blueprint-manifest.d.cts +2 -2
- package/dist/apis/blueprint-manifest.d.ts +2 -2
- package/dist/apis/blueprint-manifest.js +2 -2
- package/dist/apis/calendar.cjs +6 -6
- package/dist/apis/calendar.js +1 -1
- package/dist/apis/configuration-hub.cjs +6 -6
- package/dist/apis/configuration-hub.js +1 -1
- package/dist/apis/consent.cjs +6 -6
- package/dist/apis/consent.js +1 -1
- package/dist/apis/customer-portal.cjs +6 -6
- package/dist/apis/customer-portal.js +1 -1
- package/dist/apis/dashboard.cjs +6 -6
- package/dist/apis/dashboard.js +1 -1
- package/dist/apis/data-governance.cjs +6 -6
- package/dist/apis/data-governance.js +1 -1
- package/dist/apis/deduplication.cjs +6 -6
- package/dist/apis/deduplication.js +1 -1
- package/dist/apis/design.cjs +6 -6
- package/dist/apis/design.js +1 -1
- package/dist/apis/document.cjs +6 -6
- package/dist/apis/document.js +1 -1
- package/dist/apis/email-settings.cjs +6 -6
- package/dist/apis/email-settings.js +1 -1
- package/dist/apis/email-template.cjs +6 -6
- package/dist/apis/email-template.js +1 -1
- package/dist/apis/entity-mapping.cjs +6 -6
- package/dist/apis/entity-mapping.js +1 -1
- package/dist/apis/entity.cjs +6 -6
- package/dist/apis/entity.js +1 -1
- package/dist/apis/environments.cjs +6 -6
- package/dist/apis/environments.js +1 -1
- package/dist/apis/event-catalog.cjs +6 -6
- package/dist/apis/event-catalog.js +1 -1
- package/dist/apis/file.cjs +6 -6
- package/dist/apis/file.js +1 -1
- package/dist/apis/iban.cjs +6 -6
- package/dist/apis/iban.js +1 -1
- package/dist/apis/integration-toolkit.cjs +6 -6
- package/dist/apis/integration-toolkit.js +1 -1
- package/dist/apis/journey.cjs +6 -6
- package/dist/apis/journey.js +1 -1
- package/dist/apis/kanban.cjs +6 -6
- package/dist/apis/kanban.js +1 -1
- package/dist/apis/message.cjs +6 -6
- package/dist/apis/message.js +1 -1
- package/dist/apis/metering.cjs +6 -6
- package/dist/apis/metering.js +1 -1
- package/dist/apis/notes.cjs +6 -6
- package/dist/apis/notes.js +1 -1
- package/dist/apis/notification.cjs +6 -6
- package/dist/apis/notification.js +1 -1
- package/dist/apis/organization.cjs +6 -6
- package/dist/apis/organization.js +1 -1
- package/dist/apis/partner-directory.cjs +6 -6
- package/dist/apis/partner-directory.js +1 -1
- package/dist/apis/permissions.cjs +6 -6
- package/dist/apis/permissions.js +1 -1
- package/dist/apis/pricing-tier.cjs +6 -6
- package/dist/apis/pricing-tier.js +1 -1
- package/dist/apis/pricing.cjs +6 -6
- package/dist/apis/pricing.js +1 -1
- package/dist/apis/purpose.cjs +6 -6
- package/dist/apis/purpose.js +1 -1
- package/dist/apis/query.cjs +6 -6
- package/dist/apis/query.js +1 -1
- package/dist/apis/sandbox.cjs +6 -6
- package/dist/apis/sandbox.js +1 -1
- package/dist/apis/sharing.cjs +6 -6
- package/dist/apis/sharing.js +1 -1
- package/dist/apis/submission.cjs +6 -6
- package/dist/apis/submission.js +1 -1
- package/dist/apis/target.cjs +6 -6
- package/dist/apis/target.js +1 -1
- package/dist/apis/targeting.cjs +8 -8
- package/dist/apis/targeting.d.cts +2 -2
- package/dist/apis/targeting.d.ts +2 -2
- package/dist/apis/targeting.js +2 -2
- package/dist/apis/template-variables.cjs +6 -6
- package/dist/apis/template-variables.js +1 -1
- package/dist/apis/user.cjs +6 -6
- package/dist/apis/user.js +1 -1
- package/dist/apis/validation-rules.cjs +6 -6
- package/dist/apis/validation-rules.js +1 -1
- package/dist/apis/webhooks.cjs +6 -6
- package/dist/apis/webhooks.js +1 -1
- package/dist/apis/workflow-definition.cjs +6 -6
- package/dist/apis/workflow-definition.js +1 -1
- package/dist/apis/workflow.cjs +6 -6
- package/dist/apis/workflow.js +1 -1
- package/dist/blueprint-manifest-6DEYW5MW.js +7 -0
- package/dist/blueprint-manifest-GCV7H74X.cjs +7 -0
- package/dist/{blueprint-manifest-runtime-QN2IECSA.cjs → blueprint-manifest-runtime-EIDOROIQ.cjs} +2 -2
- package/dist/{blueprint-manifest-runtime-5UN52LW5.js → blueprint-manifest-runtime-FRLU3ZSF.js} +1 -1
- package/dist/{blueprint-manifest.d-BPyzoR0X.d.cts → blueprint-manifest.d-B8yDxagC.d.cts} +572 -6
- package/dist/{blueprint-manifest.d-BPyzoR0X.d.ts → blueprint-manifest.d-B8yDxagC.d.ts} +572 -6
- package/dist/chunk-4YBWMDFP.js +14 -0
- package/dist/{chunk-QZON5VFY.cjs → chunk-FYKMGKP4.cjs} +4 -4
- package/dist/{chunk-JFMD3PPY.js → chunk-J45A6XX5.js} +4 -4
- package/dist/chunk-LSPXLT3A.js +14 -0
- package/dist/chunk-MCK2QUSD.cjs +14 -0
- package/dist/chunk-NGHCQ2FA.cjs +14 -0
- package/dist/index.cjs +12 -12
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -3
- package/dist/js-yaml-DLCVPJ7G.js +0 -0
- package/dist/targeting-67M7H7T7.cjs +7 -0
- package/dist/targeting-XHHZ2TK4.js +7 -0
- package/dist/{targeting-runtime-M2VSTKFT.js → targeting-runtime-D5YUPZQM.js} +1 -1
- package/dist/{targeting-runtime-6JFMP262.cjs → targeting-runtime-MLMOM7CK.cjs} +2 -2
- package/dist/{targeting.d-BNmcVsNS.d.cts → targeting.d-DkyEBdtZ.d.cts} +138 -3
- package/dist/{targeting.d-BNmcVsNS.d.ts → targeting.d-DkyEBdtZ.d.ts} +138 -3
- package/docs/blueprint-manifest.md +728 -68
- package/docs/targeting.md +114 -0
- package/package.json +11 -12
- package/dist/blueprint-manifest-DBEY5PPI.js +0 -7
- package/dist/blueprint-manifest-IEQ6YBY7.cjs +0 -7
- package/dist/chunk-5WNEYQII.cjs +0 -14
- package/dist/chunk-BTTPWE2P.js +0 -14
- package/dist/chunk-L544VG3B.cjs +0 -14
- package/dist/chunk-O2YVXGPZ.js +0 -14
- package/dist/targeting-EYGYZD6M.cjs +0 -7
- package/dist/targeting-GEJTJN5Z.js +0 -7
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { OpenAPIClient, Parameters, AxiosRequestConfig, OperationResponse, UnknownParamsObject } from 'openapi-client-axios';
|
|
2
2
|
|
|
3
3
|
/* Auto-copied from targeting-client */
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
|
|
6
4
|
|
|
7
5
|
|
|
8
6
|
declare namespace Components {
|
|
@@ -121,6 +119,7 @@ declare namespace Components {
|
|
|
121
119
|
results: Schemas.RetriggerAutomationsResult[];
|
|
122
120
|
}
|
|
123
121
|
export type ServerErrorResponse = Schemas.ServerError;
|
|
122
|
+
export type SetupCampaignResponse = Schemas.SetupTariffChangeCampaignResponse;
|
|
124
123
|
}
|
|
125
124
|
namespace Schemas {
|
|
126
125
|
export interface AutomationRecipientPayload {
|
|
@@ -1465,6 +1464,100 @@ declare namespace Components {
|
|
|
1465
1464
|
error?: string;
|
|
1466
1465
|
}
|
|
1467
1466
|
export type ServerError = BaseError;
|
|
1467
|
+
/**
|
|
1468
|
+
* Discriminated by `type`. Each campaign variant has its own request shape;
|
|
1469
|
+
* new variants are added by introducing a new schema and extending the `oneOf` list.
|
|
1470
|
+
*
|
|
1471
|
+
*/
|
|
1472
|
+
export type SetupCampaignRequest = /**
|
|
1473
|
+
* Discriminated by `type`. Each campaign variant has its own request shape;
|
|
1474
|
+
* new variants are added by introducing a new schema and extending the `oneOf` list.
|
|
1475
|
+
*
|
|
1476
|
+
*/
|
|
1477
|
+
SetupTariffChangeCampaignRequest;
|
|
1478
|
+
export interface SetupTariffChangeCampaignRequest {
|
|
1479
|
+
type: "tariff_change";
|
|
1480
|
+
product_recommendation: {
|
|
1481
|
+
/**
|
|
1482
|
+
* Optional name of the product recommendation. Defaults to the campaign name.
|
|
1483
|
+
*/
|
|
1484
|
+
name?: string;
|
|
1485
|
+
/**
|
|
1486
|
+
* Optional source product entity ID for the recommendation.
|
|
1487
|
+
* example:
|
|
1488
|
+
* b8c01433-5556-4e2b-aad4-6f5348d1df84
|
|
1489
|
+
*/
|
|
1490
|
+
source_product_id?: string; // uuid
|
|
1491
|
+
/**
|
|
1492
|
+
* Optional source price entity ID for the recommendation.
|
|
1493
|
+
* example:
|
|
1494
|
+
* b8c01433-5556-4e2b-aad4-6f5348d1df84
|
|
1495
|
+
*/
|
|
1496
|
+
source_price_id?: string; // uuid
|
|
1497
|
+
/**
|
|
1498
|
+
* Offer blocks for the product_recommendation entity.
|
|
1499
|
+
*/
|
|
1500
|
+
offers?: {
|
|
1501
|
+
/**
|
|
1502
|
+
* Optional per-offer target entity ID.
|
|
1503
|
+
*/
|
|
1504
|
+
target_id?: /**
|
|
1505
|
+
* example:
|
|
1506
|
+
* b8c01433-5556-4e2b-aad4-6f5348d1df84
|
|
1507
|
+
*/
|
|
1508
|
+
BaseUUID /* uuid */;
|
|
1509
|
+
/**
|
|
1510
|
+
* Product/price pairs within this offer.
|
|
1511
|
+
*/
|
|
1512
|
+
items: {
|
|
1513
|
+
product_id: /**
|
|
1514
|
+
* example:
|
|
1515
|
+
* b8c01433-5556-4e2b-aad4-6f5348d1df84
|
|
1516
|
+
*/
|
|
1517
|
+
BaseUUID /* uuid */;
|
|
1518
|
+
price_id: /**
|
|
1519
|
+
* example:
|
|
1520
|
+
* b8c01433-5556-4e2b-aad4-6f5348d1df84
|
|
1521
|
+
*/
|
|
1522
|
+
BaseUUID /* uuid */;
|
|
1523
|
+
/**
|
|
1524
|
+
* Opaque per-item highlight/comparison config persisted as-is on the entity.
|
|
1525
|
+
*/
|
|
1526
|
+
highlight_config?: {
|
|
1527
|
+
[name: string]: any;
|
|
1528
|
+
};
|
|
1529
|
+
}[];
|
|
1530
|
+
}[];
|
|
1531
|
+
};
|
|
1532
|
+
campaign: {
|
|
1533
|
+
name: string;
|
|
1534
|
+
goal?: string;
|
|
1535
|
+
/**
|
|
1536
|
+
* List of target entity IDs to attach to the campaign. Today only a single
|
|
1537
|
+
* entry is supported (campaign.target is has_one) but the array shape is kept
|
|
1538
|
+
* for forward-compatibility — only `target_ids[0]` is used.
|
|
1539
|
+
*
|
|
1540
|
+
*/
|
|
1541
|
+
target_ids: /**
|
|
1542
|
+
* example:
|
|
1543
|
+
* b8c01433-5556-4e2b-aad4-6f5348d1df84
|
|
1544
|
+
*/
|
|
1545
|
+
BaseUUID /* uuid */[];
|
|
1546
|
+
};
|
|
1547
|
+
}
|
|
1548
|
+
export interface SetupTariffChangeCampaignResponse {
|
|
1549
|
+
type: "tariff_change";
|
|
1550
|
+
product_recommendation_id: /**
|
|
1551
|
+
* example:
|
|
1552
|
+
* b8c01433-5556-4e2b-aad4-6f5348d1df84
|
|
1553
|
+
*/
|
|
1554
|
+
BaseUUID /* uuid */;
|
|
1555
|
+
campaign_id: /**
|
|
1556
|
+
* example:
|
|
1557
|
+
* b8c01433-5556-4e2b-aad4-6f5348d1df84
|
|
1558
|
+
*/
|
|
1559
|
+
BaseUUID /* uuid */;
|
|
1560
|
+
}
|
|
1468
1561
|
export interface Target {
|
|
1469
1562
|
_id?: /**
|
|
1470
1563
|
* example:
|
|
@@ -1665,6 +1758,19 @@ declare namespace Paths {
|
|
|
1665
1758
|
export type $500 = Components.Responses.ServerErrorResponse;
|
|
1666
1759
|
}
|
|
1667
1760
|
}
|
|
1761
|
+
namespace SetupCampaign {
|
|
1762
|
+
export type RequestBody = /**
|
|
1763
|
+
* Discriminated by `type`. Each campaign variant has its own request shape;
|
|
1764
|
+
* new variants are added by introducing a new schema and extending the `oneOf` list.
|
|
1765
|
+
*
|
|
1766
|
+
*/
|
|
1767
|
+
Components.Schemas.SetupCampaignRequest;
|
|
1768
|
+
namespace Responses {
|
|
1769
|
+
export type $201 = Components.Responses.SetupCampaignResponse;
|
|
1770
|
+
export type $400 = Components.Responses.ClientErrorResponse;
|
|
1771
|
+
export type $500 = Components.Responses.ServerErrorResponse;
|
|
1772
|
+
}
|
|
1773
|
+
}
|
|
1668
1774
|
namespace UpdateRecipient {
|
|
1669
1775
|
namespace Parameters {
|
|
1670
1776
|
export type CampaignId = /**
|
|
@@ -1772,6 +1878,18 @@ interface OperationMethods {
|
|
|
1772
1878
|
data?: Paths.RetriggerCampaignAutomations.RequestBody,
|
|
1773
1879
|
config?: AxiosRequestConfig
|
|
1774
1880
|
): OperationResponse<Paths.RetriggerCampaignAutomations.Responses.$200>
|
|
1881
|
+
/**
|
|
1882
|
+
* setupCampaign - Set up a campaign with related entities and configurations
|
|
1883
|
+
*
|
|
1884
|
+
* Creates a `campaign` entity together with its related entities and configurations in a single call.
|
|
1885
|
+
* Used by the campaign wizard UI, but not restricted to it.
|
|
1886
|
+
*
|
|
1887
|
+
*/
|
|
1888
|
+
'setupCampaign'(
|
|
1889
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
1890
|
+
data?: Paths.SetupCampaign.RequestBody,
|
|
1891
|
+
config?: AxiosRequestConfig
|
|
1892
|
+
): OperationResponse<Paths.SetupCampaign.Responses.$201>
|
|
1775
1893
|
/**
|
|
1776
1894
|
* matchCampaigns - Match campaigns
|
|
1777
1895
|
*
|
|
@@ -1919,6 +2037,20 @@ interface PathsDictionary {
|
|
|
1919
2037
|
config?: AxiosRequestConfig
|
|
1920
2038
|
): OperationResponse<Paths.RetriggerCampaignAutomations.Responses.$200>
|
|
1921
2039
|
}
|
|
2040
|
+
['/v1/campaign:setup']: {
|
|
2041
|
+
/**
|
|
2042
|
+
* setupCampaign - Set up a campaign with related entities and configurations
|
|
2043
|
+
*
|
|
2044
|
+
* Creates a `campaign` entity together with its related entities and configurations in a single call.
|
|
2045
|
+
* Used by the campaign wizard UI, but not restricted to it.
|
|
2046
|
+
*
|
|
2047
|
+
*/
|
|
2048
|
+
'post'(
|
|
2049
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
2050
|
+
data?: Paths.SetupCampaign.RequestBody,
|
|
2051
|
+
config?: AxiosRequestConfig
|
|
2052
|
+
): OperationResponse<Paths.SetupCampaign.Responses.$201>
|
|
2053
|
+
}
|
|
1922
2054
|
['/v1/campaign:match']: {
|
|
1923
2055
|
/**
|
|
1924
2056
|
* matchCampaigns - Match campaigns
|
|
@@ -2049,9 +2181,12 @@ type Recipient = Components.Schemas.Recipient;
|
|
|
2049
2181
|
type RetriggerAutomationsRequest = Components.Schemas.RetriggerAutomationsRequest;
|
|
2050
2182
|
type RetriggerAutomationsResult = Components.Schemas.RetriggerAutomationsResult;
|
|
2051
2183
|
type ServerError = Components.Schemas.ServerError;
|
|
2184
|
+
type SetupCampaignRequest = Components.Schemas.SetupCampaignRequest;
|
|
2185
|
+
type SetupTariffChangeCampaignRequest = Components.Schemas.SetupTariffChangeCampaignRequest;
|
|
2186
|
+
type SetupTariffChangeCampaignResponse = Components.Schemas.SetupTariffChangeCampaignResponse;
|
|
2052
2187
|
type Target = Components.Schemas.Target;
|
|
2053
2188
|
type TargetQueryResult = Components.Schemas.TargetQueryResult;
|
|
2054
2189
|
type UpdatePortalStatusRequest = Components.Schemas.UpdatePortalStatusRequest;
|
|
2055
2190
|
type UpdateRecipientPayload = Components.Schemas.UpdateRecipientPayload;
|
|
2056
2191
|
|
|
2057
|
-
export { type AutomationRecipientPayload as A, type BaseEntityAcl as B, type Client as C, type ExecutionSummaryItem as E, type GetTargetQueriesParams as G, type JobStatus as J, type MatchCampaignParams as M, type OperationMethods as O, Paths as P, type Recipient as R, type ServerError as S, type Target as T, type UpdatePortalStatusRequest as U, Components as a, type PathsDictionary as b, type AutomationStatus as c, type BaseEntityOwner as d, type BaseError as e, type BaseNanoID as f, type BaseRecipientPayload as g, type BaseRelation as h, type BaseSystemFields as i, type BaseSystemFieldsRequired as j, type BaseSystemId as k, type BaseTags as l, type BaseUUID as m, type Campaign as n, type CampaignStatus as o, type ClientError as p, type CreateRecipientPayload as q, type MatchTargetParams as r, type PortalRecipientPayload as s, type PortalStatus as t, type RetriggerAutomationsRequest as u, type RetriggerAutomationsResult as v, type
|
|
2192
|
+
export { type AutomationRecipientPayload as A, type BaseEntityAcl as B, type Client as C, type UpdateRecipientPayload as D, type ExecutionSummaryItem as E, type GetTargetQueriesParams as G, type JobStatus as J, type MatchCampaignParams as M, type OperationMethods as O, Paths as P, type Recipient as R, type ServerError as S, type Target as T, type UpdatePortalStatusRequest as U, Components as a, type PathsDictionary as b, type AutomationStatus as c, type BaseEntityOwner as d, type BaseError as e, type BaseNanoID as f, type BaseRecipientPayload as g, type BaseRelation as h, type BaseSystemFields as i, type BaseSystemFieldsRequired as j, type BaseSystemId as k, type BaseTags as l, type BaseUUID as m, type Campaign as n, type CampaignStatus as o, type ClientError as p, type CreateRecipientPayload as q, type MatchTargetParams as r, type PortalRecipientPayload as s, type PortalStatus as t, type RetriggerAutomationsRequest as u, type RetriggerAutomationsResult as v, type SetupCampaignRequest as w, type SetupTariffChangeCampaignRequest as x, type SetupTariffChangeCampaignResponse as y, type TargetQueryResult as z };
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { OpenAPIClient, Parameters, AxiosRequestConfig, OperationResponse, UnknownParamsObject } from 'openapi-client-axios';
|
|
2
2
|
|
|
3
3
|
/* Auto-copied from targeting-client */
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
|
|
6
4
|
|
|
7
5
|
|
|
8
6
|
declare namespace Components {
|
|
@@ -121,6 +119,7 @@ declare namespace Components {
|
|
|
121
119
|
results: Schemas.RetriggerAutomationsResult[];
|
|
122
120
|
}
|
|
123
121
|
export type ServerErrorResponse = Schemas.ServerError;
|
|
122
|
+
export type SetupCampaignResponse = Schemas.SetupTariffChangeCampaignResponse;
|
|
124
123
|
}
|
|
125
124
|
namespace Schemas {
|
|
126
125
|
export interface AutomationRecipientPayload {
|
|
@@ -1465,6 +1464,100 @@ declare namespace Components {
|
|
|
1465
1464
|
error?: string;
|
|
1466
1465
|
}
|
|
1467
1466
|
export type ServerError = BaseError;
|
|
1467
|
+
/**
|
|
1468
|
+
* Discriminated by `type`. Each campaign variant has its own request shape;
|
|
1469
|
+
* new variants are added by introducing a new schema and extending the `oneOf` list.
|
|
1470
|
+
*
|
|
1471
|
+
*/
|
|
1472
|
+
export type SetupCampaignRequest = /**
|
|
1473
|
+
* Discriminated by `type`. Each campaign variant has its own request shape;
|
|
1474
|
+
* new variants are added by introducing a new schema and extending the `oneOf` list.
|
|
1475
|
+
*
|
|
1476
|
+
*/
|
|
1477
|
+
SetupTariffChangeCampaignRequest;
|
|
1478
|
+
export interface SetupTariffChangeCampaignRequest {
|
|
1479
|
+
type: "tariff_change";
|
|
1480
|
+
product_recommendation: {
|
|
1481
|
+
/**
|
|
1482
|
+
* Optional name of the product recommendation. Defaults to the campaign name.
|
|
1483
|
+
*/
|
|
1484
|
+
name?: string;
|
|
1485
|
+
/**
|
|
1486
|
+
* Optional source product entity ID for the recommendation.
|
|
1487
|
+
* example:
|
|
1488
|
+
* b8c01433-5556-4e2b-aad4-6f5348d1df84
|
|
1489
|
+
*/
|
|
1490
|
+
source_product_id?: string; // uuid
|
|
1491
|
+
/**
|
|
1492
|
+
* Optional source price entity ID for the recommendation.
|
|
1493
|
+
* example:
|
|
1494
|
+
* b8c01433-5556-4e2b-aad4-6f5348d1df84
|
|
1495
|
+
*/
|
|
1496
|
+
source_price_id?: string; // uuid
|
|
1497
|
+
/**
|
|
1498
|
+
* Offer blocks for the product_recommendation entity.
|
|
1499
|
+
*/
|
|
1500
|
+
offers?: {
|
|
1501
|
+
/**
|
|
1502
|
+
* Optional per-offer target entity ID.
|
|
1503
|
+
*/
|
|
1504
|
+
target_id?: /**
|
|
1505
|
+
* example:
|
|
1506
|
+
* b8c01433-5556-4e2b-aad4-6f5348d1df84
|
|
1507
|
+
*/
|
|
1508
|
+
BaseUUID /* uuid */;
|
|
1509
|
+
/**
|
|
1510
|
+
* Product/price pairs within this offer.
|
|
1511
|
+
*/
|
|
1512
|
+
items: {
|
|
1513
|
+
product_id: /**
|
|
1514
|
+
* example:
|
|
1515
|
+
* b8c01433-5556-4e2b-aad4-6f5348d1df84
|
|
1516
|
+
*/
|
|
1517
|
+
BaseUUID /* uuid */;
|
|
1518
|
+
price_id: /**
|
|
1519
|
+
* example:
|
|
1520
|
+
* b8c01433-5556-4e2b-aad4-6f5348d1df84
|
|
1521
|
+
*/
|
|
1522
|
+
BaseUUID /* uuid */;
|
|
1523
|
+
/**
|
|
1524
|
+
* Opaque per-item highlight/comparison config persisted as-is on the entity.
|
|
1525
|
+
*/
|
|
1526
|
+
highlight_config?: {
|
|
1527
|
+
[name: string]: any;
|
|
1528
|
+
};
|
|
1529
|
+
}[];
|
|
1530
|
+
}[];
|
|
1531
|
+
};
|
|
1532
|
+
campaign: {
|
|
1533
|
+
name: string;
|
|
1534
|
+
goal?: string;
|
|
1535
|
+
/**
|
|
1536
|
+
* List of target entity IDs to attach to the campaign. Today only a single
|
|
1537
|
+
* entry is supported (campaign.target is has_one) but the array shape is kept
|
|
1538
|
+
* for forward-compatibility — only `target_ids[0]` is used.
|
|
1539
|
+
*
|
|
1540
|
+
*/
|
|
1541
|
+
target_ids: /**
|
|
1542
|
+
* example:
|
|
1543
|
+
* b8c01433-5556-4e2b-aad4-6f5348d1df84
|
|
1544
|
+
*/
|
|
1545
|
+
BaseUUID /* uuid */[];
|
|
1546
|
+
};
|
|
1547
|
+
}
|
|
1548
|
+
export interface SetupTariffChangeCampaignResponse {
|
|
1549
|
+
type: "tariff_change";
|
|
1550
|
+
product_recommendation_id: /**
|
|
1551
|
+
* example:
|
|
1552
|
+
* b8c01433-5556-4e2b-aad4-6f5348d1df84
|
|
1553
|
+
*/
|
|
1554
|
+
BaseUUID /* uuid */;
|
|
1555
|
+
campaign_id: /**
|
|
1556
|
+
* example:
|
|
1557
|
+
* b8c01433-5556-4e2b-aad4-6f5348d1df84
|
|
1558
|
+
*/
|
|
1559
|
+
BaseUUID /* uuid */;
|
|
1560
|
+
}
|
|
1468
1561
|
export interface Target {
|
|
1469
1562
|
_id?: /**
|
|
1470
1563
|
* example:
|
|
@@ -1665,6 +1758,19 @@ declare namespace Paths {
|
|
|
1665
1758
|
export type $500 = Components.Responses.ServerErrorResponse;
|
|
1666
1759
|
}
|
|
1667
1760
|
}
|
|
1761
|
+
namespace SetupCampaign {
|
|
1762
|
+
export type RequestBody = /**
|
|
1763
|
+
* Discriminated by `type`. Each campaign variant has its own request shape;
|
|
1764
|
+
* new variants are added by introducing a new schema and extending the `oneOf` list.
|
|
1765
|
+
*
|
|
1766
|
+
*/
|
|
1767
|
+
Components.Schemas.SetupCampaignRequest;
|
|
1768
|
+
namespace Responses {
|
|
1769
|
+
export type $201 = Components.Responses.SetupCampaignResponse;
|
|
1770
|
+
export type $400 = Components.Responses.ClientErrorResponse;
|
|
1771
|
+
export type $500 = Components.Responses.ServerErrorResponse;
|
|
1772
|
+
}
|
|
1773
|
+
}
|
|
1668
1774
|
namespace UpdateRecipient {
|
|
1669
1775
|
namespace Parameters {
|
|
1670
1776
|
export type CampaignId = /**
|
|
@@ -1772,6 +1878,18 @@ interface OperationMethods {
|
|
|
1772
1878
|
data?: Paths.RetriggerCampaignAutomations.RequestBody,
|
|
1773
1879
|
config?: AxiosRequestConfig
|
|
1774
1880
|
): OperationResponse<Paths.RetriggerCampaignAutomations.Responses.$200>
|
|
1881
|
+
/**
|
|
1882
|
+
* setupCampaign - Set up a campaign with related entities and configurations
|
|
1883
|
+
*
|
|
1884
|
+
* Creates a `campaign` entity together with its related entities and configurations in a single call.
|
|
1885
|
+
* Used by the campaign wizard UI, but not restricted to it.
|
|
1886
|
+
*
|
|
1887
|
+
*/
|
|
1888
|
+
'setupCampaign'(
|
|
1889
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
1890
|
+
data?: Paths.SetupCampaign.RequestBody,
|
|
1891
|
+
config?: AxiosRequestConfig
|
|
1892
|
+
): OperationResponse<Paths.SetupCampaign.Responses.$201>
|
|
1775
1893
|
/**
|
|
1776
1894
|
* matchCampaigns - Match campaigns
|
|
1777
1895
|
*
|
|
@@ -1919,6 +2037,20 @@ interface PathsDictionary {
|
|
|
1919
2037
|
config?: AxiosRequestConfig
|
|
1920
2038
|
): OperationResponse<Paths.RetriggerCampaignAutomations.Responses.$200>
|
|
1921
2039
|
}
|
|
2040
|
+
['/v1/campaign:setup']: {
|
|
2041
|
+
/**
|
|
2042
|
+
* setupCampaign - Set up a campaign with related entities and configurations
|
|
2043
|
+
*
|
|
2044
|
+
* Creates a `campaign` entity together with its related entities and configurations in a single call.
|
|
2045
|
+
* Used by the campaign wizard UI, but not restricted to it.
|
|
2046
|
+
*
|
|
2047
|
+
*/
|
|
2048
|
+
'post'(
|
|
2049
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
2050
|
+
data?: Paths.SetupCampaign.RequestBody,
|
|
2051
|
+
config?: AxiosRequestConfig
|
|
2052
|
+
): OperationResponse<Paths.SetupCampaign.Responses.$201>
|
|
2053
|
+
}
|
|
1922
2054
|
['/v1/campaign:match']: {
|
|
1923
2055
|
/**
|
|
1924
2056
|
* matchCampaigns - Match campaigns
|
|
@@ -2049,9 +2181,12 @@ type Recipient = Components.Schemas.Recipient;
|
|
|
2049
2181
|
type RetriggerAutomationsRequest = Components.Schemas.RetriggerAutomationsRequest;
|
|
2050
2182
|
type RetriggerAutomationsResult = Components.Schemas.RetriggerAutomationsResult;
|
|
2051
2183
|
type ServerError = Components.Schemas.ServerError;
|
|
2184
|
+
type SetupCampaignRequest = Components.Schemas.SetupCampaignRequest;
|
|
2185
|
+
type SetupTariffChangeCampaignRequest = Components.Schemas.SetupTariffChangeCampaignRequest;
|
|
2186
|
+
type SetupTariffChangeCampaignResponse = Components.Schemas.SetupTariffChangeCampaignResponse;
|
|
2052
2187
|
type Target = Components.Schemas.Target;
|
|
2053
2188
|
type TargetQueryResult = Components.Schemas.TargetQueryResult;
|
|
2054
2189
|
type UpdatePortalStatusRequest = Components.Schemas.UpdatePortalStatusRequest;
|
|
2055
2190
|
type UpdateRecipientPayload = Components.Schemas.UpdateRecipientPayload;
|
|
2056
2191
|
|
|
2057
|
-
export { type AutomationRecipientPayload as A, type BaseEntityAcl as B, type Client as C, type ExecutionSummaryItem as E, type GetTargetQueriesParams as G, type JobStatus as J, type MatchCampaignParams as M, type OperationMethods as O, Paths as P, type Recipient as R, type ServerError as S, type Target as T, type UpdatePortalStatusRequest as U, Components as a, type PathsDictionary as b, type AutomationStatus as c, type BaseEntityOwner as d, type BaseError as e, type BaseNanoID as f, type BaseRecipientPayload as g, type BaseRelation as h, type BaseSystemFields as i, type BaseSystemFieldsRequired as j, type BaseSystemId as k, type BaseTags as l, type BaseUUID as m, type Campaign as n, type CampaignStatus as o, type ClientError as p, type CreateRecipientPayload as q, type MatchTargetParams as r, type PortalRecipientPayload as s, type PortalStatus as t, type RetriggerAutomationsRequest as u, type RetriggerAutomationsResult as v, type
|
|
2192
|
+
export { type AutomationRecipientPayload as A, type BaseEntityAcl as B, type Client as C, type UpdateRecipientPayload as D, type ExecutionSummaryItem as E, type GetTargetQueriesParams as G, type JobStatus as J, type MatchCampaignParams as M, type OperationMethods as O, Paths as P, type Recipient as R, type ServerError as S, type Target as T, type UpdatePortalStatusRequest as U, Components as a, type PathsDictionary as b, type AutomationStatus as c, type BaseEntityOwner as d, type BaseError as e, type BaseNanoID as f, type BaseRecipientPayload as g, type BaseRelation as h, type BaseSystemFields as i, type BaseSystemFieldsRequired as j, type BaseSystemId as k, type BaseTags as l, type BaseUUID as m, type Campaign as n, type CampaignStatus as o, type ClientError as p, type CreateRecipientPayload as q, type MatchTargetParams as r, type PortalRecipientPayload as s, type PortalStatus as t, type RetriggerAutomationsRequest as u, type RetriggerAutomationsResult as v, type SetupCampaignRequest as w, type SetupTariffChangeCampaignRequest as x, type SetupTariffChangeCampaignResponse as y, type TargetQueryResult as z };
|