@envive-ai/react-widgets-v3 0.3.10 → 0.3.11
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/_virtual/rolldown_runtime.cjs +2 -0
- package/dist/debug/GenericSelect.cjs +167 -0
- package/dist/debug/GenericSelect.js +165 -0
- package/dist/debug/MessageContent.cjs +151 -0
- package/dist/debug/MessageContent.js +149 -0
- package/dist/debug/chatEmbed.cjs +95 -0
- package/dist/debug/chatEmbed.js +92 -0
- package/dist/debug/debugBar.cjs +18 -0
- package/dist/debug/debugBar.js +17 -0
- package/dist/debug/reportIssue.cjs +528 -0
- package/dist/debug/reportIssue.js +524 -0
- package/dist/hocs/withBaseWidget/withBaseWidget.d.cts +2 -2
- package/dist/hocs/withBaseWidget/withBaseWidget.d.ts +2 -2
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/apis/CustomerServiceApi.cjs +265 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/apis/DefaultApi.cjs +591 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/apis/InferenceApi.cjs +265 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/apis/ProductsApi.cjs +105 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/apis/SearchApi.cjs +229 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/apis/index.cjs +43 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/index.cjs +39 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/AddNoteToLatestConversationRequest.cjs +68 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/AddNoteToLatestConversationResponse.cjs +60 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/AddToCartAttributes.cjs +53 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/AnalyticsIdentifyRequest.cjs +86 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/AnalyticsTrackEventRequest.cjs +62 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/AttachmentRequest.cjs +63 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/AutoForm.cjs +55 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/Context.cjs +89 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/ConversationStatus.cjs +63 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/CreateConversationRequest.cjs +68 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/CreateConversationResponse.cjs +64 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/CustServiceAttachment.cjs +68 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/CustServiceConversation.cjs +69 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/CustServiceConversationMessages.cjs +67 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/CustServiceCustomer.cjs +60 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/CustServiceMessage.cjs +85 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/CustomerServiceProvider.cjs +63 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/FormResponseAttributes.cjs +61 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/FormResponseAttributesFormCategory.cjs +55 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/FormSubmittedAttributes.cjs +65 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/FormType.cjs +61 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/FulfillmentDisplayStatus.cjs +84 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/GenerationParams.cjs +74 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/GetConversationMessagesRequest.cjs +61 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/IsBusinessHoursRequest.cjs +54 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/IsBusinessHoursResponse.cjs +59 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/LabelValue.cjs +60 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/ManualForm.cjs +55 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/MerchRule.cjs +70 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/MerchRuleAction.cjs +62 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/MerchRuleActionAttribute.cjs +58 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/MerchRuleActionType.cjs +64 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/MerchRuleCondition.cjs +60 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/MerchRuleOp.cjs +61 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/MerchRuleStatus.cjs +62 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/NextMessageRequest.cjs +78 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/OrderItemInfo.cjs +78 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/OrderResponseAttributes.cjs +71 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/Organization.cjs +83 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/OrganizationConfig.cjs +82 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/OrganizationConfigResults.cjs +70 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/OrganizationSettings.cjs +62 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/PDPAttributes.cjs +61 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/PLPAttributeCategory.cjs +61 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/PLPAttributes.cjs +64 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/PLPAttributesAttributes.cjs +55 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/PLPIdAttributes.cjs +53 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/PLPUrlAttributes.cjs +53 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/PageVisitAttributes.cjs +62 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/PageVisitCategory.cjs +65 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/ProductRetrievalRequest.cjs +62 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/ProductRetrievalResponse.cjs +55 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/ProductSearchFilterResponseAttributes.cjs +53 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/ProductSearchRequest.cjs +71 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/ProductSearchResponse.cjs +64 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/ProductSearchResponseAttributes.cjs +60 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/ProductSearchResponseV2.cjs +64 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/QueryTypedAttributes.cjs +53 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/ReportContent.cjs +59 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/ReportSessionRequest.cjs +99 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/Response.cjs +68 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/ResponseCategory.cjs +69 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/ResponseProductAttributes.cjs +91 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/SearchAttributes.cjs +65 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/SearchResponseProduct.cjs +93 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/SearchSuggestionsResponse.cjs +58 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/SendMessageRequest.cjs +71 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/SendMessageResponse.cjs +55 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/StatsigExperiment.cjs +64 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/StatsigFeatureGate.cjs +62 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/Suggestion.cjs +70 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/SuggestionCategory.cjs +62 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/SuggestionClickedAttributes.cjs +53 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/SupportedEventProductCategory.cjs +62 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/SupportedEventRequest.cjs +67 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/SupportedEventResponse.cjs +78 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/TurnInfo.cjs +70 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/TurnInfoPrevUserEvent.cjs +60 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/UrlResolvingGenericConfig.cjs +52 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/UrlResolvingPDPConfig.cjs +65 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/UrlResolvingPLPConfig.cjs +61 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/UrlResolvingRequest.cjs +65 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/UrlResolvingResponse.cjs +73 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/UrlResolvingResponseSpecificDetails.cjs +59 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/UrlResolvingType.cjs +67 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/UserEvent.cjs +69 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/UserEventAttributes.cjs +75 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/UserEventCategory.cjs +70 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/V1GetSessionMessages200Response.cjs +67 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/V1SearchExplainGet200Response.cjs +63 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/WidgetString.cjs +60 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/WidgetTextRequest.cjs +73 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/WidgetTextResponse.cjs +66 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/WidgetType.cjs +69 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/index.cjs +221 -0
- package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/runtime.cjs +324 -0
- package/dist/node_modules/react-icons/fa/index.cjs +65 -0
- package/dist/node_modules/react-icons/fa/index.js +61 -0
- package/dist/node_modules/react-icons/lib/iconBase.cjs +121 -0
- package/dist/node_modules/react-icons/lib/iconBase.js +119 -0
- package/dist/node_modules/react-icons/lib/iconContext.cjs +17 -0
- package/dist/node_modules/react-icons/lib/iconContext.js +14 -0
- package/dist/packages/icons/dist/IconCloseVariant.cjs +22 -0
- package/dist/packages/icons/dist/IconCloseVariant.js +22 -0
- package/dist/packages/icons/dist/_virtual/rolldown_runtime.cjs +27 -0
- package/dist/packages/icons/dist/_virtual/rolldown_runtime.js +25 -0
- package/dist/packages/icons/dist/node_modules/react/cjs/react-jsx-runtime.development.cjs +696 -0
- package/dist/packages/icons/dist/node_modules/react/cjs/react-jsx-runtime.development.js +696 -0
- package/dist/packages/icons/dist/node_modules/react/cjs/react-jsx-runtime.production.min.cjs +43 -0
- package/dist/packages/icons/dist/node_modules/react/cjs/react-jsx-runtime.production.min.js +43 -0
- package/dist/packages/icons/dist/node_modules/react/cjs/react.development.cjs +1528 -0
- package/dist/packages/icons/dist/node_modules/react/cjs/react.development.js +1528 -0
- package/dist/packages/icons/dist/node_modules/react/cjs/react.production.min.cjs +329 -0
- package/dist/packages/icons/dist/node_modules/react/cjs/react.production.min.js +329 -0
- package/dist/packages/icons/dist/node_modules/react/index.cjs +13 -0
- package/dist/packages/icons/dist/node_modules/react/index.js +13 -0
- package/dist/packages/icons/dist/node_modules/react/jsx-runtime.cjs +13 -0
- package/dist/packages/icons/dist/node_modules/react/jsx-runtime.js +13 -0
- package/dist/{widgets → packages/widgets}/dist/SearchResults/SearchResultsWidget.d.ts +2 -2
- package/dist/{widgets → packages/widgets}/dist/SearchZeroState/SearchZeroStateWidget.d.ts +2 -2
- package/dist/{widgets → packages/widgets}/dist/SuggestionBar/SuggestionBar.d.ts +2 -2
- package/dist/widgets/ChatPreviewComparisonWidget/ChatPreviewComparisonWidget.cjs +3 -3
- package/dist/widgets/ChatPreviewComparisonWidget/ChatPreviewComparisonWidget.d.cts +3 -3
- package/dist/widgets/ChatPreviewComparisonWidget/ChatPreviewComparisonWidget.js +3 -3
- package/dist/widgets/ChatPreviewLoadingWidget/ChatPreviewLoadingWidget.d.cts +3 -3
- package/dist/widgets/ChatPreviewLoadingWidget/ChatPreviewLoadingWidget.d.ts +3 -3
- package/dist/widgets/ChatPreviewWidget/ChatPreviewWidget.cjs +3 -3
- package/dist/widgets/ChatPreviewWidget/ChatPreviewWidget.d.cts +3 -3
- package/dist/widgets/ChatPreviewWidget/ChatPreviewWidget.d.ts +3 -3
- package/dist/widgets/ChatPreviewWidget/ChatPreviewWidget.js +3 -3
- package/dist/widgets/FloatingChatWidget/FloatingChatOverlay.cjs +2 -2
- package/dist/widgets/FloatingChatWidget/FloatingChatOverlay.js +1 -1
- package/dist/widgets/FloatingChatWidget/FloatingChatWidget.cjs +3 -1
- package/dist/widgets/FloatingChatWidget/FloatingChatWidget.d.cts +2 -2
- package/dist/widgets/FloatingChatWidget/FloatingChatWidget.d.ts +2 -2
- package/dist/widgets/FloatingChatWidget/FloatingChatWidget.js +3 -1
- package/dist/widgets/FloatingChatWidget/hooks/useFloatingButtonVisibility.cjs +4 -1
- package/dist/widgets/FloatingChatWidget/hooks/useFloatingButtonVisibility.js +5 -2
- package/dist/widgets/FullPageSalesAgentWidget/FullPageSalesAgentWidget.cjs +31 -0
- package/dist/widgets/FullPageSalesAgentWidget/FullPageSalesAgentWidget.d.cts +15 -0
- package/dist/widgets/FullPageSalesAgentWidget/FullPageSalesAgentWidget.d.ts +15 -0
- package/dist/widgets/FullPageSalesAgentWidget/FullPageSalesAgentWidget.js +30 -0
- package/dist/widgets/FullPageSalesAgentWidget/index.cjs +3 -0
- package/dist/widgets/FullPageSalesAgentWidget/index.d.cts +2 -0
- package/dist/widgets/FullPageSalesAgentWidget/index.d.ts +2 -0
- package/dist/widgets/FullPageSalesAgentWidget/index.js +3 -0
- package/dist/widgets/ProductCardWidget/ProductCardWidget.cjs +3 -2
- package/dist/widgets/ProductCardWidget/ProductCardWidget.d.cts +2 -2
- package/dist/widgets/ProductCardWidget/ProductCardWidget.d.ts +2 -2
- package/dist/widgets/ProductCardWidget/ProductCardWidget.js +3 -2
- package/dist/widgets/PromptButtonCarouselWithImageWidget/PromptButtonCarouselWithImageWidget.cjs +4 -3
- package/dist/widgets/PromptButtonCarouselWithImageWidget/PromptButtonCarouselWithImageWidget.d.cts +3 -3
- package/dist/widgets/PromptButtonCarouselWithImageWidget/PromptButtonCarouselWithImageWidget.d.ts +3 -3
- package/dist/widgets/PromptButtonCarouselWithImageWidget/PromptButtonCarouselWithImageWidget.js +4 -3
- package/dist/widgets/PromptCarouselWidget/PromptCarouselWidget.cjs +28 -4
- package/dist/widgets/PromptCarouselWidget/PromptCarouselWidget.d.cts +2 -2
- package/dist/widgets/PromptCarouselWidget/PromptCarouselWidget.js +29 -5
- package/dist/widgets/SocialProofFlowWidget/SocialProofFlowWidget.d.cts +2 -2
- package/dist/widgets/SocialProofFlowWidget/SocialProofFlowWidget.d.ts +2 -2
- package/dist/widgets/SocialProofWidget/SocialProofWidget.cjs +8 -6
- package/dist/widgets/SocialProofWidget/SocialProofWidget.d.cts +3 -3
- package/dist/widgets/SocialProofWidget/SocialProofWidget.d.ts +3 -3
- package/dist/widgets/SocialProofWidget/SocialProofWidget.js +8 -6
- package/dist/widgets/TitledPromptCarouselWidget/TitledPromptCarouselWidget.cjs +3 -2
- package/dist/widgets/TitledPromptCarouselWidget/TitledPromptCarouselWidget.d.cts +2 -2
- package/dist/widgets/TitledPromptCarouselWidget/TitledPromptCarouselWidget.d.ts +2 -2
- package/dist/widgets/TitledPromptCarouselWidget/TitledPromptCarouselWidget.js +3 -2
- package/dist/widgets/TypingAnimationFlowWidget/TypingAnimationFlowWidget.d.cts +2 -2
- package/dist/widgets/TypingAnimationWidget/TypingAnimationWidget.cjs +3 -2
- package/dist/widgets/TypingAnimationWidget/TypingAnimationWidget.d.cts +3 -3
- package/dist/widgets/TypingAnimationWidget/TypingAnimationWidget.d.ts +3 -3
- package/dist/widgets/TypingAnimationWidget/TypingAnimationWidget.js +3 -2
- package/dist/widgets/dist/SearchResults/SearchResultsWidget.d.cts +2 -2
- package/dist/widgets/dist/SearchZeroState/SearchZeroStateWidget.d.cts +2 -2
- package/dist/widgets/dist/SuggestionBar/SuggestionBar.d.cts +2 -2
- package/dist/widgets/utils/functions.cjs +1 -1
- package/dist/widgets/utils/functions.js +1 -1
- package/dist/widgets-v2/SearchResults/index.d.ts +3 -3
- package/dist/widgets-v2/SearchZeroState/index.d.ts +4 -4
- package/dist/widgets-v2/SuggestionBar/index.d.ts +3 -3
- package/dist/widgets-v2/SuggestionButtonContainer/index.d.ts +2 -2
- package/package.json +5 -1
- package/src/debug/GenericSelect.tsx +236 -0
- package/src/debug/MessageContent.tsx +248 -0
- package/src/debug/chatEmbed.tsx +119 -0
- package/src/debug/debugBar.tsx +13 -0
- package/src/debug/reportIssue.tsx +649 -0
- package/src/hocs/withBaseWidget/__tests__/withBaseWidget.test.tsx +6 -0
- package/src/stories/FullPageSalesAgentWidget.stories.tsx +68 -0
- package/src/stories/SalesAgentTest/SalesAgentTest.tsx +10 -2
- package/src/widgets/FloatingChatWidget/FloatingChatWidget.tsx +2 -0
- package/src/widgets/FloatingChatWidget/hooks/useFloatingButtonVisibility.ts +11 -5
- package/src/widgets/FullPageSalesAgentWidget/FullPageSalesAgentWidget.tsx +46 -0
- package/src/widgets/FullPageSalesAgentWidget/index.ts +1 -0
- package/src/widgets/ProductCardWidget/ProductCardWidget.tsx +5 -1
- package/src/widgets/PromptButtonCarouselWithImageWidget/PromptButtonCarouselWithImageWidget.tsx +6 -1
- package/src/widgets/PromptCarouselWidget/PromptCarouselWidget.tsx +31 -2
- package/src/widgets/SocialProofWidget/SocialProofWidget.tsx +10 -2
- package/src/widgets/TitledPromptCarouselWidget/TitledPromptCarouselWidget.tsx +5 -1
- package/src/widgets/TypingAnimationWidget/TypingAnimationWidget.tsx +5 -1
- /package/dist/{widgets → packages/widgets}/dist/SearchResults/SearchResults.d.ts +0 -0
- /package/dist/{widgets → packages/widgets}/dist/SearchResults/index.d.ts +0 -0
- /package/dist/{widgets → packages/widgets}/dist/SearchResults/types.d.ts +0 -0
- /package/dist/{widgets → packages/widgets}/dist/SearchZeroState/SearchZeroState.d.ts +0 -0
- /package/dist/{widgets → packages/widgets}/dist/SearchZeroState/index.d.ts +0 -0
- /package/dist/{widgets → packages/widgets}/dist/SearchZeroState/types.d.ts +0 -0
- /package/dist/{widgets → packages/widgets}/dist/SuggestionBar/index.d.ts +0 -0
- /package/dist/{widgets → packages/widgets}/dist/SuggestionBar/types.d.ts +0 -0
- /package/dist/{widgets → packages/widgets}/dist/SuggestionButtonContainer/SuggestionButtonContainer.d.ts +0 -0
- /package/dist/{widgets → packages/widgets}/dist/SuggestionButtonContainer/types.d.ts +0 -0
- /package/dist/{widgets → packages/widgets}/dist/config/BaseWidgetConfig.d.ts +0 -0
- /package/dist/{widgets → packages/widgets}/dist/config/WidgetType.d.ts +0 -0
package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/CreateConversationResponse.cjs
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
const require_rolldown_runtime = require('../../../../../_virtual/rolldown_runtime.cjs');
|
|
4
|
+
const require_CustServiceConversation$1 = require('./CustServiceConversation.cjs');
|
|
5
|
+
const require_CustServiceCustomer$1 = require('./CustServiceCustomer.cjs');
|
|
6
|
+
|
|
7
|
+
//#region ../../node_modules/@spiffy-ai/commerce-api-client/dist/models/CreateConversationResponse.js
|
|
8
|
+
var require_CreateConversationResponse = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports) => {
|
|
9
|
+
/**
|
|
10
|
+
* Commerce
|
|
11
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
12
|
+
*
|
|
13
|
+
* The version of the OpenAPI document: 1.1.0
|
|
14
|
+
*
|
|
15
|
+
*
|
|
16
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
17
|
+
* https://openapi-generator.tech
|
|
18
|
+
* Do not edit the class manually.
|
|
19
|
+
*/
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
exports.instanceOfCreateConversationResponse = instanceOfCreateConversationResponse;
|
|
22
|
+
exports.CreateConversationResponseFromJSON = CreateConversationResponseFromJSON;
|
|
23
|
+
exports.CreateConversationResponseFromJSONTyped = CreateConversationResponseFromJSONTyped;
|
|
24
|
+
exports.CreateConversationResponseToJSON = CreateConversationResponseToJSON;
|
|
25
|
+
exports.CreateConversationResponseToJSONTyped = CreateConversationResponseToJSONTyped;
|
|
26
|
+
const CustServiceConversation_1 = require_CustServiceConversation$1.default;
|
|
27
|
+
const CustServiceCustomer_1 = require_CustServiceCustomer$1.default;
|
|
28
|
+
/**
|
|
29
|
+
* Check if a given object implements the CreateConversationResponse interface.
|
|
30
|
+
*/
|
|
31
|
+
function instanceOfCreateConversationResponse(value) {
|
|
32
|
+
if (!("conversation" in value) || value["conversation"] === void 0) return false;
|
|
33
|
+
if (!("customer" in value) || value["customer"] === void 0) return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
function CreateConversationResponseFromJSON(json) {
|
|
37
|
+
return CreateConversationResponseFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
function CreateConversationResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) return json;
|
|
41
|
+
return {
|
|
42
|
+
"conversation": (0, CustServiceConversation_1.CustServiceConversationFromJSON)(json["conversation"]),
|
|
43
|
+
"customer": (0, CustServiceCustomer_1.CustServiceCustomerFromJSON)(json["customer"])
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function CreateConversationResponseToJSON(json) {
|
|
47
|
+
return CreateConversationResponseToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function CreateConversationResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) return value;
|
|
51
|
+
return {
|
|
52
|
+
"conversation": (0, CustServiceConversation_1.CustServiceConversationToJSON)(value["conversation"]),
|
|
53
|
+
"customer": (0, CustServiceCustomer_1.CustServiceCustomerToJSON)(value["customer"])
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
}));
|
|
57
|
+
|
|
58
|
+
//#endregion
|
|
59
|
+
Object.defineProperty(exports, 'default', {
|
|
60
|
+
enumerable: true,
|
|
61
|
+
get: function () {
|
|
62
|
+
return require_CreateConversationResponse();
|
|
63
|
+
}
|
|
64
|
+
});
|
package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/CustServiceAttachment.cjs
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
const require_rolldown_runtime = require('../../../../../_virtual/rolldown_runtime.cjs');
|
|
4
|
+
|
|
5
|
+
//#region ../../node_modules/@spiffy-ai/commerce-api-client/dist/models/CustServiceAttachment.js
|
|
6
|
+
var require_CustServiceAttachment = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports) => {
|
|
7
|
+
/**
|
|
8
|
+
* Commerce
|
|
9
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
10
|
+
*
|
|
11
|
+
* The version of the OpenAPI document: 1.1.0
|
|
12
|
+
*
|
|
13
|
+
*
|
|
14
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
15
|
+
* https://openapi-generator.tech
|
|
16
|
+
* Do not edit the class manually.
|
|
17
|
+
*/
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
exports.instanceOfCustServiceAttachment = instanceOfCustServiceAttachment;
|
|
20
|
+
exports.CustServiceAttachmentFromJSON = CustServiceAttachmentFromJSON;
|
|
21
|
+
exports.CustServiceAttachmentFromJSONTyped = CustServiceAttachmentFromJSONTyped;
|
|
22
|
+
exports.CustServiceAttachmentToJSON = CustServiceAttachmentToJSON;
|
|
23
|
+
exports.CustServiceAttachmentToJSONTyped = CustServiceAttachmentToJSONTyped;
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the CustServiceAttachment interface.
|
|
26
|
+
*/
|
|
27
|
+
function instanceOfCustServiceAttachment(value) {
|
|
28
|
+
if (!("content_length" in value) || value["content_length"] === void 0) return false;
|
|
29
|
+
if (!("content_type" in value) || value["content_type"] === void 0) return false;
|
|
30
|
+
if (!("id" in value) || value["id"] === void 0) return false;
|
|
31
|
+
if (!("name" in value) || value["name"] === void 0) return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
function CustServiceAttachmentFromJSON(json) {
|
|
35
|
+
return CustServiceAttachmentFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
function CustServiceAttachmentFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) return json;
|
|
39
|
+
return {
|
|
40
|
+
"content_length": json["content_length"],
|
|
41
|
+
"content_type": json["content_type"],
|
|
42
|
+
"id": json["id"],
|
|
43
|
+
"name": json["name"],
|
|
44
|
+
"url": json["url"] == null ? void 0 : json["url"]
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function CustServiceAttachmentToJSON(json) {
|
|
48
|
+
return CustServiceAttachmentToJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function CustServiceAttachmentToJSONTyped(value, ignoreDiscriminator = false) {
|
|
51
|
+
if (value == null) return value;
|
|
52
|
+
return {
|
|
53
|
+
"content_length": value["content_length"],
|
|
54
|
+
"content_type": value["content_type"],
|
|
55
|
+
"id": value["id"],
|
|
56
|
+
"name": value["name"],
|
|
57
|
+
"url": value["url"]
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
}));
|
|
61
|
+
|
|
62
|
+
//#endregion
|
|
63
|
+
Object.defineProperty(exports, 'default', {
|
|
64
|
+
enumerable: true,
|
|
65
|
+
get: function () {
|
|
66
|
+
return require_CustServiceAttachment();
|
|
67
|
+
}
|
|
68
|
+
});
|
package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/CustServiceConversation.cjs
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
const require_rolldown_runtime = require('../../../../../_virtual/rolldown_runtime.cjs');
|
|
4
|
+
|
|
5
|
+
//#region ../../node_modules/@spiffy-ai/commerce-api-client/dist/models/CustServiceConversation.js
|
|
6
|
+
var require_CustServiceConversation = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports) => {
|
|
7
|
+
/**
|
|
8
|
+
* Commerce
|
|
9
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
10
|
+
*
|
|
11
|
+
* The version of the OpenAPI document: 1.1.0
|
|
12
|
+
*
|
|
13
|
+
*
|
|
14
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
15
|
+
* https://openapi-generator.tech
|
|
16
|
+
* Do not edit the class manually.
|
|
17
|
+
*/
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
exports.instanceOfCustServiceConversation = instanceOfCustServiceConversation;
|
|
20
|
+
exports.CustServiceConversationFromJSON = CustServiceConversationFromJSON;
|
|
21
|
+
exports.CustServiceConversationFromJSONTyped = CustServiceConversationFromJSONTyped;
|
|
22
|
+
exports.CustServiceConversationToJSON = CustServiceConversationToJSON;
|
|
23
|
+
exports.CustServiceConversationToJSONTyped = CustServiceConversationToJSONTyped;
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the CustServiceConversation interface.
|
|
26
|
+
*/
|
|
27
|
+
function instanceOfCustServiceConversation(value) {
|
|
28
|
+
if (!("created_at" in value) || value["created_at"] === void 0) return false;
|
|
29
|
+
if (!("customer_id" in value) || value["customer_id"] === void 0) return false;
|
|
30
|
+
if (!("id" in value) || value["id"] === void 0) return false;
|
|
31
|
+
if (!("name" in value) || value["name"] === void 0) return false;
|
|
32
|
+
if (!("status" in value) || value["status"] === void 0) return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function CustServiceConversationFromJSON(json) {
|
|
36
|
+
return CustServiceConversationFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function CustServiceConversationFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) return json;
|
|
40
|
+
return {
|
|
41
|
+
"created_at": new Date(json["created_at"]),
|
|
42
|
+
"customer_id": json["customer_id"],
|
|
43
|
+
"id": json["id"],
|
|
44
|
+
"name": json["name"],
|
|
45
|
+
"status": json["status"]
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
function CustServiceConversationToJSON(json) {
|
|
49
|
+
return CustServiceConversationToJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
function CustServiceConversationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
52
|
+
if (value == null) return value;
|
|
53
|
+
return {
|
|
54
|
+
"created_at": value["created_at"].toISOString(),
|
|
55
|
+
"customer_id": value["customer_id"],
|
|
56
|
+
"id": value["id"],
|
|
57
|
+
"name": value["name"],
|
|
58
|
+
"status": value["status"]
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
}));
|
|
62
|
+
|
|
63
|
+
//#endregion
|
|
64
|
+
Object.defineProperty(exports, 'default', {
|
|
65
|
+
enumerable: true,
|
|
66
|
+
get: function () {
|
|
67
|
+
return require_CustServiceConversation();
|
|
68
|
+
}
|
|
69
|
+
});
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
const require_rolldown_runtime = require('../../../../../_virtual/rolldown_runtime.cjs');
|
|
4
|
+
const require_ConversationStatus$1 = require('./ConversationStatus.cjs');
|
|
5
|
+
const require_CustServiceMessage$1 = require('./CustServiceMessage.cjs');
|
|
6
|
+
|
|
7
|
+
//#region ../../node_modules/@spiffy-ai/commerce-api-client/dist/models/CustServiceConversationMessages.js
|
|
8
|
+
var require_CustServiceConversationMessages = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports) => {
|
|
9
|
+
/**
|
|
10
|
+
* Commerce
|
|
11
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
12
|
+
*
|
|
13
|
+
* The version of the OpenAPI document: 1.1.0
|
|
14
|
+
*
|
|
15
|
+
*
|
|
16
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
17
|
+
* https://openapi-generator.tech
|
|
18
|
+
* Do not edit the class manually.
|
|
19
|
+
*/
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
exports.instanceOfCustServiceConversationMessages = instanceOfCustServiceConversationMessages;
|
|
22
|
+
exports.CustServiceConversationMessagesFromJSON = CustServiceConversationMessagesFromJSON;
|
|
23
|
+
exports.CustServiceConversationMessagesFromJSONTyped = CustServiceConversationMessagesFromJSONTyped;
|
|
24
|
+
exports.CustServiceConversationMessagesToJSON = CustServiceConversationMessagesToJSON;
|
|
25
|
+
exports.CustServiceConversationMessagesToJSONTyped = CustServiceConversationMessagesToJSONTyped;
|
|
26
|
+
const CustServiceMessage_1 = require_CustServiceMessage$1.default;
|
|
27
|
+
const ConversationStatus_1 = require_ConversationStatus$1.default;
|
|
28
|
+
/**
|
|
29
|
+
* Check if a given object implements the CustServiceConversationMessages interface.
|
|
30
|
+
*/
|
|
31
|
+
function instanceOfCustServiceConversationMessages(value) {
|
|
32
|
+
if (!("data" in value) || value["data"] === void 0) return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function CustServiceConversationMessagesFromJSON(json) {
|
|
36
|
+
return CustServiceConversationMessagesFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function CustServiceConversationMessagesFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) return json;
|
|
40
|
+
return {
|
|
41
|
+
"conversation_status": json["conversation_status"] == null ? void 0 : (0, ConversationStatus_1.ConversationStatusFromJSON)(json["conversation_status"]),
|
|
42
|
+
"data": json["data"].map(CustServiceMessage_1.CustServiceMessageFromJSON),
|
|
43
|
+
"next_page": json["next_page"] == null ? void 0 : json["next_page"],
|
|
44
|
+
"previous_page": json["previous_page"] == null ? void 0 : json["previous_page"]
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function CustServiceConversationMessagesToJSON(json) {
|
|
48
|
+
return CustServiceConversationMessagesToJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function CustServiceConversationMessagesToJSONTyped(value, ignoreDiscriminator = false) {
|
|
51
|
+
if (value == null) return value;
|
|
52
|
+
return {
|
|
53
|
+
"conversation_status": (0, ConversationStatus_1.ConversationStatusToJSON)(value["conversation_status"]),
|
|
54
|
+
"data": value["data"].map(CustServiceMessage_1.CustServiceMessageToJSON),
|
|
55
|
+
"next_page": value["next_page"],
|
|
56
|
+
"previous_page": value["previous_page"]
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
}));
|
|
60
|
+
|
|
61
|
+
//#endregion
|
|
62
|
+
Object.defineProperty(exports, 'default', {
|
|
63
|
+
enumerable: true,
|
|
64
|
+
get: function () {
|
|
65
|
+
return require_CustServiceConversationMessages();
|
|
66
|
+
}
|
|
67
|
+
});
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
const require_rolldown_runtime = require('../../../../../_virtual/rolldown_runtime.cjs');
|
|
4
|
+
|
|
5
|
+
//#region ../../node_modules/@spiffy-ai/commerce-api-client/dist/models/CustServiceCustomer.js
|
|
6
|
+
var require_CustServiceCustomer = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports) => {
|
|
7
|
+
/**
|
|
8
|
+
* Commerce
|
|
9
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
10
|
+
*
|
|
11
|
+
* The version of the OpenAPI document: 1.1.0
|
|
12
|
+
*
|
|
13
|
+
*
|
|
14
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
15
|
+
* https://openapi-generator.tech
|
|
16
|
+
* Do not edit the class manually.
|
|
17
|
+
*/
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
exports.instanceOfCustServiceCustomer = instanceOfCustServiceCustomer;
|
|
20
|
+
exports.CustServiceCustomerFromJSON = CustServiceCustomerFromJSON;
|
|
21
|
+
exports.CustServiceCustomerFromJSONTyped = CustServiceCustomerFromJSONTyped;
|
|
22
|
+
exports.CustServiceCustomerToJSON = CustServiceCustomerToJSON;
|
|
23
|
+
exports.CustServiceCustomerToJSONTyped = CustServiceCustomerToJSONTyped;
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the CustServiceCustomer interface.
|
|
26
|
+
*/
|
|
27
|
+
function instanceOfCustServiceCustomer(value) {
|
|
28
|
+
if (!("email" in value) || value["email"] === void 0) return false;
|
|
29
|
+
if (!("id" in value) || value["id"] === void 0) return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function CustServiceCustomerFromJSON(json) {
|
|
33
|
+
return CustServiceCustomerFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function CustServiceCustomerFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) return json;
|
|
37
|
+
return {
|
|
38
|
+
"email": json["email"],
|
|
39
|
+
"id": json["id"]
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
function CustServiceCustomerToJSON(json) {
|
|
43
|
+
return CustServiceCustomerToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function CustServiceCustomerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) return value;
|
|
47
|
+
return {
|
|
48
|
+
"email": value["email"],
|
|
49
|
+
"id": value["id"]
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
}));
|
|
53
|
+
|
|
54
|
+
//#endregion
|
|
55
|
+
Object.defineProperty(exports, 'default', {
|
|
56
|
+
enumerable: true,
|
|
57
|
+
get: function () {
|
|
58
|
+
return require_CustServiceCustomer();
|
|
59
|
+
}
|
|
60
|
+
});
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
const require_rolldown_runtime = require('../../../../../_virtual/rolldown_runtime.cjs');
|
|
4
|
+
const require_CustServiceAttachment$1 = require('./CustServiceAttachment.cjs');
|
|
5
|
+
|
|
6
|
+
//#region ../../node_modules/@spiffy-ai/commerce-api-client/dist/models/CustServiceMessage.js
|
|
7
|
+
var require_CustServiceMessage = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports) => {
|
|
8
|
+
/**
|
|
9
|
+
* Commerce
|
|
10
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
11
|
+
*
|
|
12
|
+
* The version of the OpenAPI document: 1.1.0
|
|
13
|
+
*
|
|
14
|
+
*
|
|
15
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
16
|
+
* https://openapi-generator.tech
|
|
17
|
+
* Do not edit the class manually.
|
|
18
|
+
*/
|
|
19
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
+
exports.instanceOfCustServiceMessage = instanceOfCustServiceMessage;
|
|
21
|
+
exports.CustServiceMessageFromJSON = CustServiceMessageFromJSON;
|
|
22
|
+
exports.CustServiceMessageFromJSONTyped = CustServiceMessageFromJSONTyped;
|
|
23
|
+
exports.CustServiceMessageToJSON = CustServiceMessageToJSON;
|
|
24
|
+
exports.CustServiceMessageToJSONTyped = CustServiceMessageToJSONTyped;
|
|
25
|
+
const CustServiceAttachment_1 = require_CustServiceAttachment$1.default;
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the CustServiceMessage interface.
|
|
28
|
+
*/
|
|
29
|
+
function instanceOfCustServiceMessage(value) {
|
|
30
|
+
if (!("body" in value) || value["body"] === void 0) return false;
|
|
31
|
+
if (!("created_at" in value) || value["created_at"] === void 0) return false;
|
|
32
|
+
if (!("customer_id" in value) || value["customer_id"] === void 0) return false;
|
|
33
|
+
if (!("direction" in value) || value["direction"] === void 0) return false;
|
|
34
|
+
if (!("id" in value) || value["id"] === void 0) return false;
|
|
35
|
+
if (!("is_agent" in value) || value["is_agent"] === void 0) return false;
|
|
36
|
+
if (!("is_automatic_message" in value) || value["is_automatic_message"] === void 0) return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
function CustServiceMessageFromJSON(json) {
|
|
40
|
+
return CustServiceMessageFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function CustServiceMessageFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) return json;
|
|
44
|
+
return {
|
|
45
|
+
"agent_id": json["agent_id"] == null ? void 0 : json["agent_id"],
|
|
46
|
+
"agent_name": json["agent_name"] == null ? void 0 : json["agent_name"],
|
|
47
|
+
"attachments": json["attachments"] == null ? void 0 : json["attachments"].map(CustServiceAttachment_1.CustServiceAttachmentFromJSON),
|
|
48
|
+
"body": json["body"],
|
|
49
|
+
"created_at": new Date(json["created_at"]),
|
|
50
|
+
"customer_id": json["customer_id"],
|
|
51
|
+
"direction": json["direction"],
|
|
52
|
+
"id": json["id"],
|
|
53
|
+
"is_agent": json["is_agent"],
|
|
54
|
+
"is_automatic_message": json["is_automatic_message"],
|
|
55
|
+
"is_email": json["is_email"] == null ? void 0 : json["is_email"]
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
function CustServiceMessageToJSON(json) {
|
|
59
|
+
return CustServiceMessageToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
function CustServiceMessageToJSONTyped(value, ignoreDiscriminator = false) {
|
|
62
|
+
if (value == null) return value;
|
|
63
|
+
return {
|
|
64
|
+
"agent_id": value["agent_id"],
|
|
65
|
+
"agent_name": value["agent_name"],
|
|
66
|
+
"attachments": value["attachments"] == null ? void 0 : value["attachments"].map(CustServiceAttachment_1.CustServiceAttachmentToJSON),
|
|
67
|
+
"body": value["body"],
|
|
68
|
+
"created_at": value["created_at"].toISOString(),
|
|
69
|
+
"customer_id": value["customer_id"],
|
|
70
|
+
"direction": value["direction"],
|
|
71
|
+
"id": value["id"],
|
|
72
|
+
"is_agent": value["is_agent"],
|
|
73
|
+
"is_automatic_message": value["is_automatic_message"],
|
|
74
|
+
"is_email": value["is_email"]
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
}));
|
|
78
|
+
|
|
79
|
+
//#endregion
|
|
80
|
+
Object.defineProperty(exports, 'default', {
|
|
81
|
+
enumerable: true,
|
|
82
|
+
get: function () {
|
|
83
|
+
return require_CustServiceMessage();
|
|
84
|
+
}
|
|
85
|
+
});
|
package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/CustomerServiceProvider.cjs
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
const require_rolldown_runtime = require('../../../../../_virtual/rolldown_runtime.cjs');
|
|
4
|
+
|
|
5
|
+
//#region ../../node_modules/@spiffy-ai/commerce-api-client/dist/models/CustomerServiceProvider.js
|
|
6
|
+
var require_CustomerServiceProvider = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports) => {
|
|
7
|
+
/**
|
|
8
|
+
* Commerce
|
|
9
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
10
|
+
*
|
|
11
|
+
* The version of the OpenAPI document: 1.1.0
|
|
12
|
+
*
|
|
13
|
+
*
|
|
14
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
15
|
+
* https://openapi-generator.tech
|
|
16
|
+
* Do not edit the class manually.
|
|
17
|
+
*/
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
exports.CustomerServiceProvider = void 0;
|
|
20
|
+
exports.instanceOfCustomerServiceProvider = instanceOfCustomerServiceProvider;
|
|
21
|
+
exports.CustomerServiceProviderFromJSON = CustomerServiceProviderFromJSON;
|
|
22
|
+
exports.CustomerServiceProviderFromJSONTyped = CustomerServiceProviderFromJSONTyped;
|
|
23
|
+
exports.CustomerServiceProviderToJSON = CustomerServiceProviderToJSON;
|
|
24
|
+
exports.CustomerServiceProviderToJSONTyped = CustomerServiceProviderToJSONTyped;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @export
|
|
28
|
+
* @enum {string}
|
|
29
|
+
*/
|
|
30
|
+
var CustomerServiceProvider;
|
|
31
|
+
(function(CustomerServiceProvider$1) {
|
|
32
|
+
CustomerServiceProvider$1["Gladly"] = "GLADLY";
|
|
33
|
+
CustomerServiceProvider$1["Kustomer"] = "KUSTOMER";
|
|
34
|
+
CustomerServiceProvider$1["Gorgias"] = "GORGIAS";
|
|
35
|
+
CustomerServiceProvider$1["Unsupported"] = "UNSUPPORTED";
|
|
36
|
+
})(CustomerServiceProvider || (exports.CustomerServiceProvider = CustomerServiceProvider = {}));
|
|
37
|
+
function instanceOfCustomerServiceProvider(value) {
|
|
38
|
+
for (const key in CustomerServiceProvider) if (Object.prototype.hasOwnProperty.call(CustomerServiceProvider, key)) {
|
|
39
|
+
if (CustomerServiceProvider[key] === value) return true;
|
|
40
|
+
}
|
|
41
|
+
return false;
|
|
42
|
+
}
|
|
43
|
+
function CustomerServiceProviderFromJSON(json) {
|
|
44
|
+
return CustomerServiceProviderFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function CustomerServiceProviderFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
+
return json;
|
|
48
|
+
}
|
|
49
|
+
function CustomerServiceProviderToJSON(value) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
function CustomerServiceProviderToJSONTyped(value, ignoreDiscriminator) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
}));
|
|
56
|
+
|
|
57
|
+
//#endregion
|
|
58
|
+
Object.defineProperty(exports, 'default', {
|
|
59
|
+
enumerable: true,
|
|
60
|
+
get: function () {
|
|
61
|
+
return require_CustomerServiceProvider();
|
|
62
|
+
}
|
|
63
|
+
});
|
package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/FormResponseAttributes.cjs
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
const require_rolldown_runtime = require('../../../../../_virtual/rolldown_runtime.cjs');
|
|
4
|
+
const require_FormResponseAttributesFormCategory$1 = require('./FormResponseAttributesFormCategory.cjs');
|
|
5
|
+
|
|
6
|
+
//#region ../../node_modules/@spiffy-ai/commerce-api-client/dist/models/FormResponseAttributes.js
|
|
7
|
+
var require_FormResponseAttributes = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports) => {
|
|
8
|
+
/**
|
|
9
|
+
* Commerce
|
|
10
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
11
|
+
*
|
|
12
|
+
* The version of the OpenAPI document: 1.1.0
|
|
13
|
+
*
|
|
14
|
+
*
|
|
15
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
16
|
+
* https://openapi-generator.tech
|
|
17
|
+
* Do not edit the class manually.
|
|
18
|
+
*/
|
|
19
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
+
exports.instanceOfFormResponseAttributes = instanceOfFormResponseAttributes;
|
|
21
|
+
exports.FormResponseAttributesFromJSON = FormResponseAttributesFromJSON;
|
|
22
|
+
exports.FormResponseAttributesFromJSONTyped = FormResponseAttributesFromJSONTyped;
|
|
23
|
+
exports.FormResponseAttributesToJSON = FormResponseAttributesToJSON;
|
|
24
|
+
exports.FormResponseAttributesToJSONTyped = FormResponseAttributesToJSONTyped;
|
|
25
|
+
const FormResponseAttributesFormCategory_1 = require_FormResponseAttributesFormCategory$1.default;
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the FormResponseAttributes interface.
|
|
28
|
+
*/
|
|
29
|
+
function instanceOfFormResponseAttributes(value) {
|
|
30
|
+
if (!("schema" in value) || value["schema"] === void 0) return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function FormResponseAttributesFromJSON(json) {
|
|
34
|
+
return FormResponseAttributesFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function FormResponseAttributesFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) return json;
|
|
38
|
+
return {
|
|
39
|
+
"form_category": json["form_category"] == null ? void 0 : (0, FormResponseAttributesFormCategory_1.FormResponseAttributesFormCategoryFromJSON)(json["form_category"]),
|
|
40
|
+
"schema": json["schema"]
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function FormResponseAttributesToJSON(json) {
|
|
44
|
+
return FormResponseAttributesToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function FormResponseAttributesToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) return value;
|
|
48
|
+
return {
|
|
49
|
+
"form_category": (0, FormResponseAttributesFormCategory_1.FormResponseAttributesFormCategoryToJSON)(value["form_category"]),
|
|
50
|
+
"schema": value["schema"]
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
}));
|
|
54
|
+
|
|
55
|
+
//#endregion
|
|
56
|
+
Object.defineProperty(exports, 'default', {
|
|
57
|
+
enumerable: true,
|
|
58
|
+
get: function () {
|
|
59
|
+
return require_FormResponseAttributes();
|
|
60
|
+
}
|
|
61
|
+
});
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
const require_rolldown_runtime = require('../../../../../_virtual/rolldown_runtime.cjs');
|
|
4
|
+
const require_AutoForm$1 = require('./AutoForm.cjs');
|
|
5
|
+
const require_ManualForm$1 = require('./ManualForm.cjs');
|
|
6
|
+
|
|
7
|
+
//#region ../../node_modules/@spiffy-ai/commerce-api-client/dist/models/FormResponseAttributesFormCategory.js
|
|
8
|
+
var require_FormResponseAttributesFormCategory = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports) => {
|
|
9
|
+
/**
|
|
10
|
+
* Commerce
|
|
11
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
12
|
+
*
|
|
13
|
+
* The version of the OpenAPI document: 1.1.0
|
|
14
|
+
*
|
|
15
|
+
*
|
|
16
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
17
|
+
* https://openapi-generator.tech
|
|
18
|
+
* Do not edit the class manually.
|
|
19
|
+
*/
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
exports.FormResponseAttributesFormCategoryFromJSON = FormResponseAttributesFormCategoryFromJSON;
|
|
22
|
+
exports.FormResponseAttributesFormCategoryFromJSONTyped = FormResponseAttributesFormCategoryFromJSONTyped;
|
|
23
|
+
exports.FormResponseAttributesFormCategoryToJSON = FormResponseAttributesFormCategoryToJSON;
|
|
24
|
+
exports.FormResponseAttributesFormCategoryToJSONTyped = FormResponseAttributesFormCategoryToJSONTyped;
|
|
25
|
+
const AutoForm_1 = require_AutoForm$1.default;
|
|
26
|
+
const ManualForm_1 = require_ManualForm$1.default;
|
|
27
|
+
function FormResponseAttributesFormCategoryFromJSON(json) {
|
|
28
|
+
return FormResponseAttributesFormCategoryFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function FormResponseAttributesFormCategoryFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) return json;
|
|
32
|
+
if (typeof json !== "object") return json;
|
|
33
|
+
if ((0, AutoForm_1.instanceOfAutoForm)(json)) return (0, AutoForm_1.AutoFormFromJSONTyped)(json, true);
|
|
34
|
+
if ((0, ManualForm_1.instanceOfManualForm)(json)) return (0, ManualForm_1.ManualFormFromJSONTyped)(json, true);
|
|
35
|
+
return {};
|
|
36
|
+
}
|
|
37
|
+
function FormResponseAttributesFormCategoryToJSON(json) {
|
|
38
|
+
return FormResponseAttributesFormCategoryToJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function FormResponseAttributesFormCategoryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
41
|
+
if (value == null) return value;
|
|
42
|
+
if (typeof value !== "object") return value;
|
|
43
|
+
if ((0, AutoForm_1.instanceOfAutoForm)(value)) return (0, AutoForm_1.AutoFormToJSON)(value);
|
|
44
|
+
if ((0, ManualForm_1.instanceOfManualForm)(value)) return (0, ManualForm_1.ManualFormToJSON)(value);
|
|
45
|
+
return {};
|
|
46
|
+
}
|
|
47
|
+
}));
|
|
48
|
+
|
|
49
|
+
//#endregion
|
|
50
|
+
Object.defineProperty(exports, 'default', {
|
|
51
|
+
enumerable: true,
|
|
52
|
+
get: function () {
|
|
53
|
+
return require_FormResponseAttributesFormCategory();
|
|
54
|
+
}
|
|
55
|
+
});
|
package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/FormSubmittedAttributes.cjs
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
const require_rolldown_runtime = require('../../../../../_virtual/rolldown_runtime.cjs');
|
|
4
|
+
const require_FormType$1 = require('./FormType.cjs');
|
|
5
|
+
|
|
6
|
+
//#region ../../node_modules/@spiffy-ai/commerce-api-client/dist/models/FormSubmittedAttributes.js
|
|
7
|
+
var require_FormSubmittedAttributes = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports) => {
|
|
8
|
+
/**
|
|
9
|
+
* Commerce
|
|
10
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
11
|
+
*
|
|
12
|
+
* The version of the OpenAPI document: 1.1.0
|
|
13
|
+
*
|
|
14
|
+
*
|
|
15
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
16
|
+
* https://openapi-generator.tech
|
|
17
|
+
* Do not edit the class manually.
|
|
18
|
+
*/
|
|
19
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
+
exports.instanceOfFormSubmittedAttributes = instanceOfFormSubmittedAttributes;
|
|
21
|
+
exports.FormSubmittedAttributesFromJSON = FormSubmittedAttributesFromJSON;
|
|
22
|
+
exports.FormSubmittedAttributesFromJSONTyped = FormSubmittedAttributesFromJSONTyped;
|
|
23
|
+
exports.FormSubmittedAttributesToJSON = FormSubmittedAttributesToJSON;
|
|
24
|
+
exports.FormSubmittedAttributesToJSONTyped = FormSubmittedAttributesToJSONTyped;
|
|
25
|
+
const FormType_1 = require_FormType$1.default;
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the FormSubmittedAttributes interface.
|
|
28
|
+
*/
|
|
29
|
+
function instanceOfFormSubmittedAttributes(value) {
|
|
30
|
+
if (!("filled_schema" in value) || value["filled_schema"] === void 0) return false;
|
|
31
|
+
if (!("form_response_id" in value) || value["form_response_id"] === void 0) return false;
|
|
32
|
+
if (!("form_type" in value) || value["form_type"] === void 0) return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function FormSubmittedAttributesFromJSON(json) {
|
|
36
|
+
return FormSubmittedAttributesFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function FormSubmittedAttributesFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) return json;
|
|
40
|
+
return {
|
|
41
|
+
"filled_schema": json["filled_schema"],
|
|
42
|
+
"form_response_id": json["form_response_id"],
|
|
43
|
+
"form_type": (0, FormType_1.FormTypeFromJSON)(json["form_type"])
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function FormSubmittedAttributesToJSON(json) {
|
|
47
|
+
return FormSubmittedAttributesToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function FormSubmittedAttributesToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) return value;
|
|
51
|
+
return {
|
|
52
|
+
"filled_schema": value["filled_schema"],
|
|
53
|
+
"form_response_id": value["form_response_id"],
|
|
54
|
+
"form_type": (0, FormType_1.FormTypeToJSON)(value["form_type"])
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
}));
|
|
58
|
+
|
|
59
|
+
//#endregion
|
|
60
|
+
Object.defineProperty(exports, 'default', {
|
|
61
|
+
enumerable: true,
|
|
62
|
+
get: function () {
|
|
63
|
+
return require_FormSubmittedAttributes();
|
|
64
|
+
}
|
|
65
|
+
});
|