@redotech/redo-api-schema 2.2.144 → 2.2.146
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/lib/openapi.d.ts +49 -25
- package/lib/openapi.yaml +87 -31
- package/package.json +1 -1
package/lib/openapi.d.ts
CHANGED
|
@@ -957,40 +957,64 @@ export interface components {
|
|
|
957
957
|
* Storefront Event
|
|
958
958
|
* @description Shopify pixel event for storefront tracking.
|
|
959
959
|
*/
|
|
960
|
-
"storefront-event.schema": {
|
|
961
|
-
/** @description
|
|
962
|
-
|
|
963
|
-
/** @description
|
|
964
|
-
|
|
960
|
+
"storefront-event.schema": ({
|
|
961
|
+
/** @description Anonymous identifier for users without account. */
|
|
962
|
+
anonymousId?: string;
|
|
963
|
+
/** @description Cart information. */
|
|
964
|
+
cart?: Record<string, never> | null;
|
|
965
|
+
/** @description Information about specific cart line item. */
|
|
966
|
+
cartLine?: Record<string, never>;
|
|
967
|
+
/** @description Checkout information. */
|
|
968
|
+
checkout?: Record<string, never>;
|
|
969
|
+
/** @description Collection information. */
|
|
970
|
+
collection?: Record<string, never>;
|
|
965
971
|
/** @description Customer information if available. */
|
|
966
|
-
customer?:
|
|
967
|
-
/**
|
|
968
|
-
|
|
972
|
+
customer?: Record<string, never> | null;
|
|
973
|
+
/**
|
|
974
|
+
* Format: email
|
|
975
|
+
* @description Customer email if available.
|
|
976
|
+
*/
|
|
977
|
+
customerEmail?: string;
|
|
978
|
+
/** @description Customer phone if available. */
|
|
979
|
+
customerPhone?: string;
|
|
969
980
|
/** @description Unique identifier for the event. */
|
|
970
|
-
eventId
|
|
981
|
+
eventId?: string;
|
|
971
982
|
/**
|
|
972
|
-
* @description Name of the Shopify pixel event
|
|
983
|
+
* @description Name of the Shopify pixel event.
|
|
973
984
|
* @enum {string}
|
|
974
985
|
*/
|
|
975
|
-
eventName
|
|
976
|
-
/** @description
|
|
977
|
-
|
|
978
|
-
[key: string]: unknown;
|
|
979
|
-
};
|
|
980
|
-
/** @description Product ID if event is related to a specific product. */
|
|
981
|
-
productId?: string;
|
|
982
|
-
/** @description Whether the Redo protection was selected in the UI. */
|
|
983
|
-
redoSelected?: boolean;
|
|
984
|
-
/** @description The Shopify shop domain. */
|
|
985
|
-
shopDomain: string;
|
|
986
|
+
eventName?: "product_added_to_cart" | "product_removed_from_cart" | "product_viewed" | "checkout_started" | "checkout_completed" | "checkout_contact_info_submitted" | "page_viewed" | "collection_viewed";
|
|
987
|
+
/** @description Product variant information. */
|
|
988
|
+
productVariant?: Record<string, never>;
|
|
986
989
|
/**
|
|
987
990
|
* Format: date-time
|
|
988
991
|
* @description ISO 8601 timestamp when the event occurred.
|
|
989
992
|
*/
|
|
990
|
-
timestamp
|
|
991
|
-
/** @description
|
|
992
|
-
|
|
993
|
-
|
|
993
|
+
timestamp?: string;
|
|
994
|
+
/** @description Page URL without query parameters. */
|
|
995
|
+
urlWithoutParams?: string;
|
|
996
|
+
/** @description Complete page URL with query parameters. */
|
|
997
|
+
urlWithParams?: string;
|
|
998
|
+
[key: string]: unknown;
|
|
999
|
+
}) & ({
|
|
1000
|
+
/** @enum {unknown} */
|
|
1001
|
+
eventName?: "product_added_to_cart";
|
|
1002
|
+
} | {
|
|
1003
|
+
/** @enum {unknown} */
|
|
1004
|
+
eventName?: "product_removed_from_cart";
|
|
1005
|
+
} | {
|
|
1006
|
+
/** @enum {unknown} */
|
|
1007
|
+
eventName?: "product_viewed";
|
|
1008
|
+
} | ({
|
|
1009
|
+
/** @enum {unknown} */
|
|
1010
|
+
eventName?: "checkout_started" | "checkout_completed" | "checkout_contact_info_submitted";
|
|
1011
|
+
}) | {
|
|
1012
|
+
/** @enum {unknown} */
|
|
1013
|
+
eventName?: "page_viewed";
|
|
1014
|
+
} | {
|
|
1015
|
+
/** @enum {unknown} */
|
|
1016
|
+
eventName?: "collection_viewed";
|
|
1017
|
+
});
|
|
994
1018
|
/**
|
|
995
1019
|
* Webhook create
|
|
996
1020
|
* @description Webhook create.
|
package/lib/openapi.yaml
CHANGED
|
@@ -1045,59 +1045,115 @@ components:
|
|
|
1045
1045
|
title: Storefront Customer
|
|
1046
1046
|
type: object
|
|
1047
1047
|
storefront-event.schema:
|
|
1048
|
-
additionalProperties:
|
|
1048
|
+
additionalProperties: true
|
|
1049
|
+
allOf:
|
|
1050
|
+
- required:
|
|
1051
|
+
- eventName
|
|
1052
|
+
- eventId
|
|
1053
|
+
- timestamp
|
|
1054
|
+
- oneOf:
|
|
1055
|
+
- required:
|
|
1056
|
+
- customer
|
|
1057
|
+
- required:
|
|
1058
|
+
- anonymousId
|
|
1049
1059
|
description: Shopify pixel event for storefront tracking.
|
|
1060
|
+
oneOf:
|
|
1061
|
+
- properties:
|
|
1062
|
+
eventName:
|
|
1063
|
+
enum:
|
|
1064
|
+
- product_added_to_cart
|
|
1065
|
+
required:
|
|
1066
|
+
- cartLine
|
|
1067
|
+
- cart
|
|
1068
|
+
- properties:
|
|
1069
|
+
eventName:
|
|
1070
|
+
enum:
|
|
1071
|
+
- product_removed_from_cart
|
|
1072
|
+
required:
|
|
1073
|
+
- cartLine
|
|
1074
|
+
- cart
|
|
1075
|
+
- properties:
|
|
1076
|
+
eventName:
|
|
1077
|
+
enum:
|
|
1078
|
+
- product_viewed
|
|
1079
|
+
required:
|
|
1080
|
+
- productVariant
|
|
1081
|
+
- properties:
|
|
1082
|
+
eventName:
|
|
1083
|
+
enum:
|
|
1084
|
+
- checkout_started
|
|
1085
|
+
- checkout_completed
|
|
1086
|
+
- checkout_contact_info_submitted
|
|
1087
|
+
required:
|
|
1088
|
+
- checkout
|
|
1089
|
+
- properties:
|
|
1090
|
+
eventName:
|
|
1091
|
+
enum:
|
|
1092
|
+
- page_viewed
|
|
1093
|
+
- properties:
|
|
1094
|
+
eventName:
|
|
1095
|
+
enum:
|
|
1096
|
+
- collection_viewed
|
|
1097
|
+
required:
|
|
1098
|
+
- collection
|
|
1050
1099
|
properties:
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
description: Cart information if relevant to the event.
|
|
1054
|
-
clientId:
|
|
1055
|
-
description: Identifier for the client that generated the event.
|
|
1100
|
+
anonymousId:
|
|
1101
|
+
description: Anonymous identifier for users without account.
|
|
1056
1102
|
type: string
|
|
1103
|
+
cart:
|
|
1104
|
+
description: Cart information.
|
|
1105
|
+
type:
|
|
1106
|
+
- object
|
|
1107
|
+
- 'null'
|
|
1108
|
+
cartLine:
|
|
1109
|
+
description: Information about specific cart line item.
|
|
1110
|
+
type: object
|
|
1111
|
+
checkout:
|
|
1112
|
+
description: Checkout information.
|
|
1113
|
+
type: object
|
|
1114
|
+
collection:
|
|
1115
|
+
description: Collection information.
|
|
1116
|
+
type: object
|
|
1057
1117
|
customer:
|
|
1058
|
-
$ref: '#/components/schemas/storefront-customer.schema'
|
|
1059
1118
|
description: Customer information if available.
|
|
1060
|
-
|
|
1061
|
-
|
|
1119
|
+
type:
|
|
1120
|
+
- object
|
|
1121
|
+
- 'null'
|
|
1122
|
+
customerEmail:
|
|
1123
|
+
description: Customer email if available.
|
|
1124
|
+
format: email
|
|
1125
|
+
type: string
|
|
1126
|
+
customerPhone:
|
|
1127
|
+
description: Customer phone if available.
|
|
1062
1128
|
type: string
|
|
1063
1129
|
eventId:
|
|
1064
1130
|
description: Unique identifier for the event.
|
|
1065
1131
|
type: string
|
|
1066
1132
|
eventName:
|
|
1067
|
-
description: Name of the Shopify pixel event
|
|
1133
|
+
description: Name of the Shopify pixel event.
|
|
1068
1134
|
enum:
|
|
1135
|
+
- product_added_to_cart
|
|
1136
|
+
- product_removed_from_cart
|
|
1069
1137
|
- product_viewed
|
|
1070
|
-
- product_added
|
|
1071
1138
|
- checkout_started
|
|
1072
1139
|
- checkout_completed
|
|
1140
|
+
- checkout_contact_info_submitted
|
|
1073
1141
|
- page_viewed
|
|
1142
|
+
- collection_viewed
|
|
1074
1143
|
type: string
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
description: Additional context information.
|
|
1144
|
+
productVariant:
|
|
1145
|
+
description: Product variant information.
|
|
1078
1146
|
type: object
|
|
1079
|
-
productId:
|
|
1080
|
-
description: Product ID if event is related to a specific product.
|
|
1081
|
-
type: string
|
|
1082
|
-
redoSelected:
|
|
1083
|
-
description: Whether the Redo protection was selected in the UI.
|
|
1084
|
-
type: boolean
|
|
1085
|
-
shopDomain:
|
|
1086
|
-
description: The Shopify shop domain.
|
|
1087
|
-
type: string
|
|
1088
1147
|
timestamp:
|
|
1089
1148
|
description: ISO 8601 timestamp when the event occurred.
|
|
1090
1149
|
format: date-time
|
|
1091
1150
|
type: string
|
|
1092
|
-
|
|
1093
|
-
description:
|
|
1151
|
+
urlWithParams:
|
|
1152
|
+
description: Complete page URL with query parameters.
|
|
1153
|
+
type: string
|
|
1154
|
+
urlWithoutParams:
|
|
1155
|
+
description: Page URL without query parameters.
|
|
1094
1156
|
type: string
|
|
1095
|
-
required:
|
|
1096
|
-
- eventName
|
|
1097
|
-
- eventId
|
|
1098
|
-
- timestamp
|
|
1099
|
-
- clientId
|
|
1100
|
-
- shopDomain
|
|
1101
1157
|
title: Storefront Event
|
|
1102
1158
|
type: object
|
|
1103
1159
|
webhook-create.schema:
|
package/package.json
CHANGED