Best JavaScript code snippet using sinon
types.js
Source:types.js
...30 "webUrl": "URL"31 },32 "implementsNode": true33 };34 Object.freeze(Checkout.fieldBaseTypes);35 var Checkout$1 = Object.freeze(Checkout);36 37 const ID = {38 "name": "ID",39 "kind": "SCALAR"40 };41 var ID$1 = Object.freeze(ID);42 43 const Boolean = {44 "name": "Boolean",45 "kind": "SCALAR"46 };47 var Boolean$1 = Object.freeze(Boolean);48 49 const CheckoutLineItemConnection = {50 "name": "CheckoutLineItemConnection",51 "kind": "OBJECT",52 "fieldBaseTypes": {53 "edges": "CheckoutLineItemEdge",54 "pageInfo": "PageInfo"55 },56 "implementsNode": false57 };58 Object.freeze(CheckoutLineItemConnection.fieldBaseTypes);59 var CheckoutLineItemConnection$1 = Object.freeze(CheckoutLineItemConnection);60 61 const PageInfo = {62 "name": "PageInfo",63 "kind": "OBJECT",64 "fieldBaseTypes": {65 "hasNextPage": "Boolean",66 "hasPreviousPage": "Boolean"67 },68 "implementsNode": false69 };70 Object.freeze(PageInfo.fieldBaseTypes);71 var PageInfo$1 = Object.freeze(PageInfo);72 73 const CheckoutLineItemEdge = {74 "name": "CheckoutLineItemEdge",75 "kind": "OBJECT",76 "fieldBaseTypes": {77 "cursor": "String",78 "node": "CheckoutLineItem"79 },80 "implementsNode": false81 };82 Object.freeze(CheckoutLineItemEdge.fieldBaseTypes);83 var CheckoutLineItemEdge$1 = Object.freeze(CheckoutLineItemEdge);84 85 const String = {86 "name": "String",87 "kind": "SCALAR"88 };89 var String$1 = Object.freeze(String);90 91 const CheckoutLineItem = {92 "name": "CheckoutLineItem",93 "kind": "OBJECT",94 "fieldBaseTypes": {95 "customAttributes": "Attribute",96 "id": "ID",97 "quantity": "Int",98 "title": "String",99 "variant": "ProductVariant"100 },101 "implementsNode": true102 };103 Object.freeze(CheckoutLineItem.fieldBaseTypes);104 var CheckoutLineItem$1 = Object.freeze(CheckoutLineItem);105 106 const ProductVariant = {107 "name": "ProductVariant",108 "kind": "OBJECT",109 "fieldBaseTypes": {110 "available": "Boolean",111 "id": "ID",112 "image": "Image",113 "price": "Money",114 "product": "Product",115 "selectedOptions": "SelectedOption",116 "title": "String",117 "weight": "Float",118 "weightUnit": "WeightUnit"119 },120 "implementsNode": true121 };122 Object.freeze(ProductVariant.fieldBaseTypes);123 var ProductVariant$1 = Object.freeze(ProductVariant);124 125 const Float = {126 "name": "Float",127 "kind": "SCALAR"128 };129 var Float$1 = Object.freeze(Float);130 131 const WeightUnit = {132 "name": "WeightUnit",133 "kind": "ENUM"134 };135 var WeightUnit$1 = Object.freeze(WeightUnit);136 137 const Money = {138 "name": "Money",139 "kind": "SCALAR"140 };141 var Money$1 = Object.freeze(Money);142 143 const Image = {144 "name": "Image",145 "kind": "OBJECT",146 "fieldBaseTypes": {147 "altText": "String",148 "id": "ID",149 "src": "URL"150 },151 "implementsNode": false152 };153 Object.freeze(Image.fieldBaseTypes);154 var Image$1 = Object.freeze(Image);155 156 const URL = {157 "name": "URL",158 "kind": "SCALAR"159 };160 var URL$1 = Object.freeze(URL);161 162 const Int = {163 "name": "Int",164 "kind": "SCALAR"165 };166 var Int$1 = Object.freeze(Int);167 168 const CropRegion = {169 "name": "CropRegion",170 "kind": "ENUM"171 };172 var CropRegion$1 = Object.freeze(CropRegion);173 174 const SelectedOption = {175 "name": "SelectedOption",176 "kind": "OBJECT",177 "fieldBaseTypes": {178 "name": "String",179 "value": "String"180 },181 "implementsNode": false182 };183 Object.freeze(SelectedOption.fieldBaseTypes);184 var SelectedOption$1 = Object.freeze(SelectedOption);185 186 const Product = {187 "name": "Product",188 "kind": "OBJECT",189 "fieldBaseTypes": {190 "collections": "CollectionConnection",191 "createdAt": "DateTime",192 "description": "String",193 "descriptionHtml": "HTML",194 "handle": "String",195 "id": "ID",196 "images": "ImageConnection",197 "options": "ProductOption",198 "productType": "String",199 "publishedAt": "DateTime",200 "tags": "String",201 "title": "String",202 "updatedAt": "DateTime",203 "variantBySelectedOptions": "ProductVariant",204 "variants": "ProductVariantConnection",205 "vendor": "String"206 },207 "implementsNode": true208 };209 Object.freeze(Product.fieldBaseTypes);210 var Product$1 = Object.freeze(Product);211 212 const CollectionConnection = {213 "name": "CollectionConnection",214 "kind": "OBJECT",215 "fieldBaseTypes": {216 "edges": "CollectionEdge",217 "pageInfo": "PageInfo"218 },219 "implementsNode": false220 };221 Object.freeze(CollectionConnection.fieldBaseTypes);222 var CollectionConnection$1 = Object.freeze(CollectionConnection);223 224 const CollectionEdge = {225 "name": "CollectionEdge",226 "kind": "OBJECT",227 "fieldBaseTypes": {228 "cursor": "String",229 "node": "Collection"230 },231 "implementsNode": false232 };233 Object.freeze(CollectionEdge.fieldBaseTypes);234 var CollectionEdge$1 = Object.freeze(CollectionEdge);235 236 const Collection = {237 "name": "Collection",238 "kind": "OBJECT",239 "fieldBaseTypes": {240 "description": "String",241 "descriptionHtml": "HTML",242 "handle": "String",243 "id": "ID",244 "image": "Image",245 "products": "ProductConnection",246 "title": "String",247 "updatedAt": "DateTime"248 },249 "implementsNode": true250 };251 Object.freeze(Collection.fieldBaseTypes);252 var Collection$1 = Object.freeze(Collection);253 254 const HTML = {255 "name": "HTML",256 "kind": "SCALAR"257 };258 var HTML$1 = Object.freeze(HTML);259 260 const DateTime = {261 "name": "DateTime",262 "kind": "SCALAR"263 };264 var DateTime$1 = Object.freeze(DateTime);265 266 const ProductConnection = {267 "name": "ProductConnection",268 "kind": "OBJECT",269 "fieldBaseTypes": {270 "edges": "ProductEdge",271 "pageInfo": "PageInfo"272 },273 "implementsNode": false274 };275 Object.freeze(ProductConnection.fieldBaseTypes);276 var ProductConnection$1 = Object.freeze(ProductConnection);277 278 const ProductEdge = {279 "name": "ProductEdge",280 "kind": "OBJECT",281 "fieldBaseTypes": {282 "cursor": "String",283 "node": "Product"284 },285 "implementsNode": false286 };287 Object.freeze(ProductEdge.fieldBaseTypes);288 var ProductEdge$1 = Object.freeze(ProductEdge);289 290 const Node = {291 "name": "Node",292 "kind": "INTERFACE",293 "fieldBaseTypes": {294 "id": "ID"295 },296 "possibleTypes": ["AppliedGiftCard", "Checkout", "CheckoutLineItem", "Collection", "MailingAddress", "Order", "Payment", "Product", "ProductOption", "ProductVariant", "ShopPolicy"]297 };298 Object.freeze(Node.fieldBaseTypes);299 Object.freeze(Node.possibleTypes);300 var Node$1 = Object.freeze(Node);301 302 const ImageConnection = {303 "name": "ImageConnection",304 "kind": "OBJECT",305 "fieldBaseTypes": {306 "edges": "ImageEdge",307 "pageInfo": "PageInfo"308 },309 "implementsNode": false310 };311 Object.freeze(ImageConnection.fieldBaseTypes);312 var ImageConnection$1 = Object.freeze(ImageConnection);313 314 const ImageEdge = {315 "name": "ImageEdge",316 "kind": "OBJECT",317 "fieldBaseTypes": {318 "cursor": "String",319 "node": "Image"320 },321 "implementsNode": false322 };323 Object.freeze(ImageEdge.fieldBaseTypes);324 var ImageEdge$1 = Object.freeze(ImageEdge);325 326 const SelectedOptionInput = {327 "name": "SelectedOptionInput",328 "kind": "INPUT_OBJECT",329 "inputFieldBaseTypes": {330 "name": "String",331 "value": "String"332 }333 };334 Object.freeze(SelectedOptionInput.inputFieldBaseTypes);335 var SelectedOptionInput$1 = Object.freeze(SelectedOptionInput);336 337 const ProductOption = {338 "name": "ProductOption",339 "kind": "OBJECT",340 "fieldBaseTypes": {341 "id": "ID",342 "name": "String",343 "values": "String"344 },345 "implementsNode": true346 };347 Object.freeze(ProductOption.fieldBaseTypes);348 var ProductOption$1 = Object.freeze(ProductOption);349 350 const ProductVariantConnection = {351 "name": "ProductVariantConnection",352 "kind": "OBJECT",353 "fieldBaseTypes": {354 "edges": "ProductVariantEdge",355 "pageInfo": "PageInfo"356 },357 "implementsNode": false358 };359 Object.freeze(ProductVariantConnection.fieldBaseTypes);360 var ProductVariantConnection$1 = Object.freeze(ProductVariantConnection);361 362 const ProductVariantEdge = {363 "name": "ProductVariantEdge",364 "kind": "OBJECT",365 "fieldBaseTypes": {366 "cursor": "String",367 "node": "ProductVariant"368 },369 "implementsNode": false370 };371 Object.freeze(ProductVariantEdge.fieldBaseTypes);372 var ProductVariantEdge$1 = Object.freeze(ProductVariantEdge);373 374 const Attribute = {375 "name": "Attribute",376 "kind": "OBJECT",377 "fieldBaseTypes": {378 "key": "String",379 "value": "String"380 },381 "implementsNode": false382 };383 Object.freeze(Attribute.fieldBaseTypes);384 var Attribute$1 = Object.freeze(Attribute);385 386 const MailingAddress = {387 "name": "MailingAddress",388 "kind": "OBJECT",389 "fieldBaseTypes": {390 "address1": "String",391 "address2": "String",392 "city": "String",393 "company": "String",394 "country": "String",395 "countryCode": "String",396 "firstName": "String",397 "formatted": "String",398 "id": "ID",399 "lastName": "String",400 "latitude": "Float",401 "longitude": "Float",402 "name": "String",403 "phone": "String",404 "province": "String",405 "provinceCode": "String",406 "zip": "String"407 },408 "implementsNode": true409 };410 Object.freeze(MailingAddress.fieldBaseTypes);411 var MailingAddress$1 = Object.freeze(MailingAddress);412 413 const ShippingRate = {414 "name": "ShippingRate",415 "kind": "OBJECT",416 "fieldBaseTypes": {417 "handle": "String",418 "price": "Money",419 "title": "String"420 },421 "implementsNode": false422 };423 Object.freeze(ShippingRate.fieldBaseTypes);424 var ShippingRate$1 = Object.freeze(ShippingRate);425 426 const AvailableShippingRates = {427 "name": "AvailableShippingRates",428 "kind": "OBJECT",429 "fieldBaseTypes": {430 "ready": "Boolean",431 "shippingRates": "ShippingRate"432 },433 "implementsNode": false434 };435 Object.freeze(AvailableShippingRates.fieldBaseTypes);436 var AvailableShippingRates$1 = Object.freeze(AvailableShippingRates);437 438 const Customer = {439 "name": "Customer",440 "kind": "OBJECT",441 "fieldBaseTypes": {442 "acceptsMarketing": "Boolean",443 "addresses": "MailingAddressConnection",444 "createdAt": "DateTime",445 "defaultAddress": "MailingAddress",446 "displayName": "String",447 "email": "String",448 "firstName": "String",449 "id": "ID",450 "lastName": "String",451 "orders": "OrderConnection",452 "phone": "String",453 "updatedAt": "DateTime"454 },455 "implementsNode": false456 };457 Object.freeze(Customer.fieldBaseTypes);458 var Customer$1 = Object.freeze(Customer);459 460 const MailingAddressConnection = {461 "name": "MailingAddressConnection",462 "kind": "OBJECT",463 "fieldBaseTypes": {464 "edges": "MailingAddressEdge",465 "pageInfo": "PageInfo"466 },467 "implementsNode": false468 };469 Object.freeze(MailingAddressConnection.fieldBaseTypes);470 var MailingAddressConnection$1 = Object.freeze(MailingAddressConnection);471 472 const MailingAddressEdge = {473 "name": "MailingAddressEdge",474 "kind": "OBJECT",475 "fieldBaseTypes": {476 "cursor": "String",477 "node": "MailingAddress"478 },479 "implementsNode": false480 };481 Object.freeze(MailingAddressEdge.fieldBaseTypes);482 var MailingAddressEdge$1 = Object.freeze(MailingAddressEdge);483 484 const OrderConnection = {485 "name": "OrderConnection",486 "kind": "OBJECT",487 "fieldBaseTypes": {488 "edges": "OrderEdge",489 "pageInfo": "PageInfo"490 },491 "implementsNode": false492 };493 Object.freeze(OrderConnection.fieldBaseTypes);494 var OrderConnection$1 = Object.freeze(OrderConnection);495 496 const OrderEdge = {497 "name": "OrderEdge",498 "kind": "OBJECT",499 "fieldBaseTypes": {500 "cursor": "String",501 "node": "Order"502 },503 "implementsNode": false504 };505 Object.freeze(OrderEdge.fieldBaseTypes);506 var OrderEdge$1 = Object.freeze(OrderEdge);507 508 const Order = {509 "name": "Order",510 "kind": "OBJECT",511 "fieldBaseTypes": {512 "cancelReason": "OrderCancelReason",513 "cancelledAt": "DateTime",514 "createdAt": "DateTime",515 "currencyCode": "CurrencyCode",516 "customerUrl": "URL",517 "displayFinancialStatus": "OrderDisplayFinancialStatus",518 "displayFulfillmentStatus": "OrderDisplayFulfillmentStatus",519 "email": "String",520 "id": "ID",521 "lineItems": "OrderLineItemConnection",522 "orderNumber": "Int",523 "phone": "String",524 "processedAt": "DateTime",525 "shippingAddress": "MailingAddress",526 "subtotalPrice": "Money",527 "totalPrice": "Money",528 "totalRefunded": "Money",529 "totalShippingPrice": "Money",530 "totalTax": "Money",531 "updatedAt": "DateTime"532 },533 "implementsNode": true534 };535 Object.freeze(Order.fieldBaseTypes);536 var Order$1 = Object.freeze(Order);537 538 const OrderCancelReason = {539 "name": "OrderCancelReason",540 "kind": "ENUM"541 };542 var OrderCancelReason$1 = Object.freeze(OrderCancelReason);543 544 const CurrencyCode = {545 "name": "CurrencyCode",546 "kind": "ENUM"547 };548 var CurrencyCode$1 = Object.freeze(CurrencyCode);549 550 const OrderDisplayFulfillmentStatus = {551 "name": "OrderDisplayFulfillmentStatus",552 "kind": "ENUM"553 };554 var OrderDisplayFulfillmentStatus$1 = Object.freeze(OrderDisplayFulfillmentStatus);555 556 const OrderDisplayFinancialStatus = {557 "name": "OrderDisplayFinancialStatus",558 "kind": "ENUM"559 };560 var OrderDisplayFinancialStatus$1 = Object.freeze(OrderDisplayFinancialStatus);561 562 const OrderLineItemConnection = {563 "name": "OrderLineItemConnection",564 "kind": "OBJECT",565 "fieldBaseTypes": {566 "edges": "OrderLineItemEdge",567 "pageInfo": "PageInfo"568 },569 "implementsNode": false570 };571 Object.freeze(OrderLineItemConnection.fieldBaseTypes);572 var OrderLineItemConnection$1 = Object.freeze(OrderLineItemConnection);573 574 const OrderLineItemEdge = {575 "name": "OrderLineItemEdge",576 "kind": "OBJECT",577 "fieldBaseTypes": {578 "cursor": "String",579 "node": "OrderLineItem"580 },581 "implementsNode": false582 };583 Object.freeze(OrderLineItemEdge.fieldBaseTypes);584 var OrderLineItemEdge$1 = Object.freeze(OrderLineItemEdge);585 586 const OrderLineItem = {587 "name": "OrderLineItem",588 "kind": "OBJECT",589 "fieldBaseTypes": {590 "customAttributes": "Attribute",591 "quantity": "Int",592 "title": "String",593 "variant": "ProductVariant"594 },595 "implementsNode": false596 };597 Object.freeze(OrderLineItem.fieldBaseTypes);598 var OrderLineItem$1 = Object.freeze(OrderLineItem);599 600 const OrderSortKeys = {601 "name": "OrderSortKeys",602 "kind": "ENUM"603 };604 var OrderSortKeys$1 = Object.freeze(OrderSortKeys);605 606 const AppliedGiftCard = {607 "name": "AppliedGiftCard",608 "kind": "OBJECT",609 "fieldBaseTypes": {610 "amountUsed": "Money",611 "balance": "Money",612 "id": "ID",613 "lastCharacters": "String"614 },615 "implementsNode": true616 };617 Object.freeze(AppliedGiftCard.fieldBaseTypes);618 var AppliedGiftCard$1 = Object.freeze(AppliedGiftCard);619 620 const QueryRoot = {621 "name": "QueryRoot",622 "kind": "OBJECT",623 "fieldBaseTypes": {624 "customer": "Customer",625 "node": "Node",626 "nodes": "Node",627 "shop": "Shop"628 },629 "implementsNode": false630 };631 Object.freeze(QueryRoot.fieldBaseTypes);632 var QueryRoot$1 = Object.freeze(QueryRoot);633 634 const Shop = {635 "name": "Shop",636 "kind": "OBJECT",637 "fieldBaseTypes": {638 "collections": "CollectionConnection",639 "currencyCode": "CurrencyCode",640 "description": "String",641 "moneyFormat": "String",642 "name": "String",643 "primaryDomain": "Domain",644 "privacyPolicy": "ShopPolicy",645 "products": "ProductConnection",646 "refundPolicy": "ShopPolicy",647 "termsOfService": "ShopPolicy"648 },649 "implementsNode": false650 };651 Object.freeze(Shop.fieldBaseTypes);652 var Shop$1 = Object.freeze(Shop);653 654 const Domain = {655 "name": "Domain",656 "kind": "OBJECT",657 "fieldBaseTypes": {658 "host": "String",659 "sslEnabled": "Boolean",660 "url": "URL"661 },662 "implementsNode": false663 };664 Object.freeze(Domain.fieldBaseTypes);665 var Domain$1 = Object.freeze(Domain);666 667 const ShopPolicy = {668 "name": "ShopPolicy",669 "kind": "OBJECT",670 "fieldBaseTypes": {671 "body": "String",672 "id": "ID",673 "title": "String",674 "url": "URL"675 },676 "implementsNode": true677 };678 Object.freeze(ShopPolicy.fieldBaseTypes);679 var ShopPolicy$1 = Object.freeze(ShopPolicy);680 681 const CollectionSortKeys = {682 "name": "CollectionSortKeys",683 "kind": "ENUM"684 };685 var CollectionSortKeys$1 = Object.freeze(CollectionSortKeys);686 687 const ProductSortKeys = {688 "name": "ProductSortKeys",689 "kind": "ENUM"690 };691 var ProductSortKeys$1 = Object.freeze(ProductSortKeys);692 693 const Mutation = {694 "name": "Mutation",695 "kind": "OBJECT",696 "fieldBaseTypes": {697 "checkoutAttributesUpdate": "CheckoutAttributesUpdatePayload",698 "checkoutCompleteFree": "CheckoutCompleteFreePayload",699 "checkoutCompleteWithCreditCard": "CheckoutCompleteWithCreditCardPayload",700 "checkoutCompleteWithTokenizedPayment": "CheckoutCompleteWithTokenizedPaymentPayload",701 "checkoutCreate": "CheckoutCreatePayload",702 "checkoutCustomerAssociate": "CheckoutCustomerAssociatePayload",703 "checkoutCustomerDisassociate": "CheckoutCustomerDisassociatePayload",704 "checkoutEmailUpdate": "CheckoutEmailUpdatePayload",705 "checkoutGiftCardApply": "CheckoutGiftCardApplyPayload",706 "checkoutGiftCardRemove": "CheckoutGiftCardRemovePayload",707 "checkoutLineItemsAdd": "CheckoutLineItemsAddPayload",708 "checkoutLineItemsRemove": "CheckoutLineItemsRemovePayload",709 "checkoutLineItemsUpdate": "CheckoutLineItemsUpdatePayload",710 "checkoutShippingAddressUpdate": "CheckoutShippingAddressUpdatePayload",711 "checkoutShippingLineUpdate": "CheckoutShippingLineUpdatePayload",712 "customerAccessTokenCreate": "CustomerAccessTokenCreatePayload",713 "customerAccessTokenDelete": "CustomerAccessTokenDeletePayload",714 "customerAccessTokenRenew": "CustomerAccessTokenRenewPayload",715 "customerActivate": "CustomerActivatePayload",716 "customerAddressCreate": "CustomerAddressCreatePayload",717 "customerAddressDelete": "CustomerAddressDeletePayload",718 "customerAddressUpdate": "CustomerAddressUpdatePayload",719 "customerCreate": "CustomerCreatePayload",720 "customerRecover": "CustomerRecoverPayload",721 "customerReset": "CustomerResetPayload",722 "customerUpdate": "CustomerUpdatePayload"723 },724 "implementsNode": false,725 "relayInputObjectBaseTypes": {726 "checkoutAttributesUpdate": "CheckoutAttributesUpdateInput",727 "checkoutCreate": "CheckoutCreateInput",728 "customerAccessTokenCreate": "CustomerAccessTokenCreateInput",729 "customerActivate": "CustomerActivateInput",730 "customerCreate": "CustomerCreateInput",731 "customerReset": "CustomerResetInput"732 }733 };734 Object.freeze(Mutation.fieldBaseTypes);735 Object.freeze(Mutation.relayInputObjectBaseTypes);736 var Mutation$1 = Object.freeze(Mutation);737 738 const CheckoutAttributesUpdatePayload = {739 "name": "CheckoutAttributesUpdatePayload",740 "kind": "OBJECT",741 "fieldBaseTypes": {742 "checkout": "Checkout",743 "userErrors": "UserError"744 },745 "implementsNode": false746 };747 Object.freeze(CheckoutAttributesUpdatePayload.fieldBaseTypes);748 var CheckoutAttributesUpdatePayload$1 = Object.freeze(CheckoutAttributesUpdatePayload);749 750 const UserError = {751 "name": "UserError",752 "kind": "OBJECT",753 "fieldBaseTypes": {754 "field": "String",755 "message": "String"756 },757 "implementsNode": false758 };759 Object.freeze(UserError.fieldBaseTypes);760 var UserError$1 = Object.freeze(UserError);761 762 const CheckoutAttributesUpdateInput = {763 "name": "CheckoutAttributesUpdateInput",764 "kind": "INPUT_OBJECT",765 "inputFieldBaseTypes": {766 "note": "String",767 "customAttributes": "AttributeInput",768 "allowPartialAddresses": "Boolean"769 }770 };771 Object.freeze(CheckoutAttributesUpdateInput.inputFieldBaseTypes);772 var CheckoutAttributesUpdateInput$1 = Object.freeze(CheckoutAttributesUpdateInput);773 774 const AttributeInput = {775 "name": "AttributeInput",776 "kind": "INPUT_OBJECT",777 "inputFieldBaseTypes": {778 "key": "String",779 "value": "String"780 }781 };782 Object.freeze(AttributeInput.inputFieldBaseTypes);783 var AttributeInput$1 = Object.freeze(AttributeInput);784 785 const CheckoutCompleteFreePayload = {786 "name": "CheckoutCompleteFreePayload",787 "kind": "OBJECT",788 "fieldBaseTypes": {789 "checkout": "Checkout",790 "userErrors": "UserError"791 },792 "implementsNode": false793 };794 Object.freeze(CheckoutCompleteFreePayload.fieldBaseTypes);795 var CheckoutCompleteFreePayload$1 = Object.freeze(CheckoutCompleteFreePayload);796 797 const CheckoutCompleteWithCreditCardPayload = {798 "name": "CheckoutCompleteWithCreditCardPayload",799 "kind": "OBJECT",800 "fieldBaseTypes": {801 "checkout": "Checkout",802 "payment": "Payment",803 "userErrors": "UserError"804 },805 "implementsNode": false806 };807 Object.freeze(CheckoutCompleteWithCreditCardPayload.fieldBaseTypes);808 var CheckoutCompleteWithCreditCardPayload$1 = Object.freeze(CheckoutCompleteWithCreditCardPayload);809 810 const Payment = {811 "name": "Payment",812 "kind": "OBJECT",813 "fieldBaseTypes": {814 "amount": "Money",815 "billingAddress": "MailingAddress",816 "checkout": "Checkout",817 "creditCard": "CreditCard",818 "errorMessage": "String",819 "id": "ID",820 "idempotencyKey": "String",821 "ready": "Boolean",822 "test": "Boolean",823 "transaction": "Transaction"824 },825 "implementsNode": true826 };827 Object.freeze(Payment.fieldBaseTypes);828 var Payment$1 = Object.freeze(Payment);829 830 const CreditCard = {831 "name": "CreditCard",832 "kind": "OBJECT",833 "fieldBaseTypes": {834 "brand": "String",835 "expiryMonth": "Int",836 "expiryYear": "Int",837 "firstDigits": "String",838 "firstName": "String",839 "lastDigits": "String",840 "lastName": "String",841 "maskedNumber": "String"842 },843 "implementsNode": false844 };845 Object.freeze(CreditCard.fieldBaseTypes);846 var CreditCard$1 = Object.freeze(CreditCard);847 848 const Transaction = {849 "name": "Transaction",850 "kind": "OBJECT",851 "fieldBaseTypes": {852 "amount": "Money",853 "kind": "TransactionKind",854 "status": "TransactionStatus",855 "test": "Boolean"856 },857 "implementsNode": false858 };859 Object.freeze(Transaction.fieldBaseTypes);860 var Transaction$1 = Object.freeze(Transaction);861 862 const TransactionKind = {863 "name": "TransactionKind",864 "kind": "ENUM"865 };866 var TransactionKind$1 = Object.freeze(TransactionKind);867 868 const TransactionStatus = {869 "name": "TransactionStatus",870 "kind": "ENUM"871 };872 var TransactionStatus$1 = Object.freeze(TransactionStatus);873 874 const CreditCardPaymentInput = {875 "name": "CreditCardPaymentInput",876 "kind": "INPUT_OBJECT",877 "inputFieldBaseTypes": {878 "amount": "Money",879 "idempotencyKey": "String",880 "billingAddress": "MailingAddressInput",881 "vaultId": "String",882 "test": "Boolean"883 }884 };885 Object.freeze(CreditCardPaymentInput.inputFieldBaseTypes);886 var CreditCardPaymentInput$1 = Object.freeze(CreditCardPaymentInput);887 888 const MailingAddressInput = {889 "name": "MailingAddressInput",890 "kind": "INPUT_OBJECT",891 "inputFieldBaseTypes": {892 "address1": "String",893 "address2": "String",894 "city": "String",895 "company": "String",896 "country": "String",897 "firstName": "String",898 "lastName": "String",899 "phone": "String",900 "province": "String",901 "zip": "String"902 }903 };904 Object.freeze(MailingAddressInput.inputFieldBaseTypes);905 var MailingAddressInput$1 = Object.freeze(MailingAddressInput);906 907 const CheckoutCompleteWithTokenizedPaymentPayload = {908 "name": "CheckoutCompleteWithTokenizedPaymentPayload",909 "kind": "OBJECT",910 "fieldBaseTypes": {911 "checkout": "Checkout",912 "payment": "Payment",913 "userErrors": "UserError"914 },915 "implementsNode": false916 };917 Object.freeze(CheckoutCompleteWithTokenizedPaymentPayload.fieldBaseTypes);918 var CheckoutCompleteWithTokenizedPaymentPayload$1 = Object.freeze(CheckoutCompleteWithTokenizedPaymentPayload);919 920 const TokenizedPaymentInput = {921 "name": "TokenizedPaymentInput",922 "kind": "INPUT_OBJECT",923 "inputFieldBaseTypes": {924 "amount": "Money",925 "idempotencyKey": "String",926 "billingAddress": "MailingAddressInput",927 "type": "String",928 "paymentData": "String",929 "test": "Boolean",930 "identifier": "String"931 }932 };933 Object.freeze(TokenizedPaymentInput.inputFieldBaseTypes);934 var TokenizedPaymentInput$1 = Object.freeze(TokenizedPaymentInput);935 936 const CheckoutCreatePayload = {937 "name": "CheckoutCreatePayload",938 "kind": "OBJECT",939 "fieldBaseTypes": {940 "checkout": "Checkout",941 "userErrors": "UserError"942 },943 "implementsNode": false944 };945 Object.freeze(CheckoutCreatePayload.fieldBaseTypes);946 var CheckoutCreatePayload$1 = Object.freeze(CheckoutCreatePayload);947 948 const CheckoutCreateInput = {949 "name": "CheckoutCreateInput",950 "kind": "INPUT_OBJECT",951 "inputFieldBaseTypes": {952 "email": "String",953 "lineItems": "CheckoutLineItemInput",954 "shippingAddress": "MailingAddressInput",955 "note": "String",956 "customAttributes": "AttributeInput",957 "allowPartialAddresses": "Boolean"958 }959 };960 Object.freeze(CheckoutCreateInput.inputFieldBaseTypes);961 var CheckoutCreateInput$1 = Object.freeze(CheckoutCreateInput);962 963 const CheckoutLineItemInput = {964 "name": "CheckoutLineItemInput",965 "kind": "INPUT_OBJECT",966 "inputFieldBaseTypes": {967 "variantId": "ID",968 "quantity": "Int",969 "customAttributes": "AttributeInput"970 }971 };972 Object.freeze(CheckoutLineItemInput.inputFieldBaseTypes);973 var CheckoutLineItemInput$1 = Object.freeze(CheckoutLineItemInput);974 975 const CheckoutCustomerAssociatePayload = {976 "name": "CheckoutCustomerAssociatePayload",977 "kind": "OBJECT",978 "fieldBaseTypes": {979 "checkout": "Checkout",980 "userErrors": "UserError"981 },982 "implementsNode": false983 };984 Object.freeze(CheckoutCustomerAssociatePayload.fieldBaseTypes);985 var CheckoutCustomerAssociatePayload$1 = Object.freeze(CheckoutCustomerAssociatePayload);986 987 const CheckoutCustomerDisassociatePayload = {988 "name": "CheckoutCustomerDisassociatePayload",989 "kind": "OBJECT",990 "fieldBaseTypes": {991 "checkout": "Checkout",992 "userErrors": "UserError"993 },994 "implementsNode": false995 };996 Object.freeze(CheckoutCustomerDisassociatePayload.fieldBaseTypes);997 var CheckoutCustomerDisassociatePayload$1 = Object.freeze(CheckoutCustomerDisassociatePayload);998 999 const CheckoutEmailUpdatePayload = {1000 "name": "CheckoutEmailUpdatePayload",1001 "kind": "OBJECT",1002 "fieldBaseTypes": {1003 "checkout": "Checkout",1004 "userErrors": "UserError"1005 },1006 "implementsNode": false1007 };1008 Object.freeze(CheckoutEmailUpdatePayload.fieldBaseTypes);1009 var CheckoutEmailUpdatePayload$1 = Object.freeze(CheckoutEmailUpdatePayload);1010 1011 const CheckoutGiftCardApplyPayload = {1012 "name": "CheckoutGiftCardApplyPayload",1013 "kind": "OBJECT",1014 "fieldBaseTypes": {1015 "checkout": "Checkout",1016 "userErrors": "UserError"1017 },1018 "implementsNode": false1019 };1020 Object.freeze(CheckoutGiftCardApplyPayload.fieldBaseTypes);1021 var CheckoutGiftCardApplyPayload$1 = Object.freeze(CheckoutGiftCardApplyPayload);1022 1023 const CheckoutGiftCardRemovePayload = {1024 "name": "CheckoutGiftCardRemovePayload",1025 "kind": "OBJECT",1026 "fieldBaseTypes": {1027 "checkout": "Checkout",1028 "userErrors": "UserError"1029 },1030 "implementsNode": false1031 };1032 Object.freeze(CheckoutGiftCardRemovePayload.fieldBaseTypes);1033 var CheckoutGiftCardRemovePayload$1 = Object.freeze(CheckoutGiftCardRemovePayload);1034 1035 const CheckoutLineItemsAddPayload = {1036 "name": "CheckoutLineItemsAddPayload",1037 "kind": "OBJECT",1038 "fieldBaseTypes": {1039 "checkout": "Checkout",1040 "userErrors": "UserError"1041 },1042 "implementsNode": false1043 };1044 Object.freeze(CheckoutLineItemsAddPayload.fieldBaseTypes);1045 var CheckoutLineItemsAddPayload$1 = Object.freeze(CheckoutLineItemsAddPayload);1046 1047 const CheckoutLineItemsRemovePayload = {1048 "name": "CheckoutLineItemsRemovePayload",1049 "kind": "OBJECT",1050 "fieldBaseTypes": {1051 "checkout": "Checkout",1052 "userErrors": "UserError"1053 },1054 "implementsNode": false1055 };1056 Object.freeze(CheckoutLineItemsRemovePayload.fieldBaseTypes);1057 var CheckoutLineItemsRemovePayload$1 = Object.freeze(CheckoutLineItemsRemovePayload);1058 1059 const CheckoutLineItemsUpdatePayload = {1060 "name": "CheckoutLineItemsUpdatePayload",1061 "kind": "OBJECT",1062 "fieldBaseTypes": {1063 "checkout": "Checkout",1064 "userErrors": "UserError"1065 },1066 "implementsNode": false1067 };1068 Object.freeze(CheckoutLineItemsUpdatePayload.fieldBaseTypes);1069 var CheckoutLineItemsUpdatePayload$1 = Object.freeze(CheckoutLineItemsUpdatePayload);1070 1071 const CheckoutLineItemUpdateInput = {1072 "name": "CheckoutLineItemUpdateInput",1073 "kind": "INPUT_OBJECT",1074 "inputFieldBaseTypes": {1075 "id": "ID",1076 "variantId": "ID",1077 "quantity": "Int",1078 "customAttributes": "AttributeInput"1079 }1080 };1081 Object.freeze(CheckoutLineItemUpdateInput.inputFieldBaseTypes);1082 var CheckoutLineItemUpdateInput$1 = Object.freeze(CheckoutLineItemUpdateInput);1083 1084 const CheckoutShippingAddressUpdatePayload = {1085 "name": "CheckoutShippingAddressUpdatePayload",1086 "kind": "OBJECT",1087 "fieldBaseTypes": {1088 "checkout": "Checkout",1089 "userErrors": "UserError"1090 },1091 "implementsNode": false1092 };1093 Object.freeze(CheckoutShippingAddressUpdatePayload.fieldBaseTypes);1094 var CheckoutShippingAddressUpdatePayload$1 = Object.freeze(CheckoutShippingAddressUpdatePayload);1095 1096 const CheckoutShippingLineUpdatePayload = {1097 "name": "CheckoutShippingLineUpdatePayload",1098 "kind": "OBJECT",1099 "fieldBaseTypes": {1100 "checkout": "Checkout",1101 "userErrors": "UserError"1102 },1103 "implementsNode": false1104 };1105 Object.freeze(CheckoutShippingLineUpdatePayload.fieldBaseTypes);1106 var CheckoutShippingLineUpdatePayload$1 = Object.freeze(CheckoutShippingLineUpdatePayload);1107 1108 const CustomerAccessTokenCreatePayload = {1109 "name": "CustomerAccessTokenCreatePayload",1110 "kind": "OBJECT",1111 "fieldBaseTypes": {1112 "customerAccessToken": "CustomerAccessToken",1113 "userErrors": "UserError"1114 },1115 "implementsNode": false1116 };1117 Object.freeze(CustomerAccessTokenCreatePayload.fieldBaseTypes);1118 var CustomerAccessTokenCreatePayload$1 = Object.freeze(CustomerAccessTokenCreatePayload);1119 1120 const CustomerAccessToken = {1121 "name": "CustomerAccessToken",1122 "kind": "OBJECT",1123 "fieldBaseTypes": {1124 "accessToken": "String",1125 "expiresAt": "DateTime"1126 },1127 "implementsNode": false1128 };1129 Object.freeze(CustomerAccessToken.fieldBaseTypes);1130 var CustomerAccessToken$1 = Object.freeze(CustomerAccessToken);1131 1132 const CustomerAccessTokenCreateInput = {1133 "name": "CustomerAccessTokenCreateInput",1134 "kind": "INPUT_OBJECT",1135 "inputFieldBaseTypes": {1136 "email": "String",1137 "password": "String"1138 }1139 };1140 Object.freeze(CustomerAccessTokenCreateInput.inputFieldBaseTypes);1141 var CustomerAccessTokenCreateInput$1 = Object.freeze(CustomerAccessTokenCreateInput);1142 1143 const CustomerAccessTokenDeletePayload = {1144 "name": "CustomerAccessTokenDeletePayload",1145 "kind": "OBJECT",1146 "fieldBaseTypes": {1147 "deletedAccessToken": "String",1148 "deletedCustomerAccessTokenId": "String",1149 "userErrors": "UserError"1150 },1151 "implementsNode": false1152 };1153 Object.freeze(CustomerAccessTokenDeletePayload.fieldBaseTypes);1154 var CustomerAccessTokenDeletePayload$1 = Object.freeze(CustomerAccessTokenDeletePayload);1155 1156 const CustomerAccessTokenRenewPayload = {1157 "name": "CustomerAccessTokenRenewPayload",1158 "kind": "OBJECT",1159 "fieldBaseTypes": {1160 "customerAccessToken": "CustomerAccessToken",1161 "userErrors": "UserError"1162 },1163 "implementsNode": false1164 };1165 Object.freeze(CustomerAccessTokenRenewPayload.fieldBaseTypes);1166 var CustomerAccessTokenRenewPayload$1 = Object.freeze(CustomerAccessTokenRenewPayload);1167 1168 const CustomerActivatePayload = {1169 "name": "CustomerActivatePayload",1170 "kind": "OBJECT",1171 "fieldBaseTypes": {1172 "customer": "Customer",1173 "userErrors": "UserError"1174 },1175 "implementsNode": false1176 };1177 Object.freeze(CustomerActivatePayload.fieldBaseTypes);1178 var CustomerActivatePayload$1 = Object.freeze(CustomerActivatePayload);1179 1180 const CustomerActivateInput = {1181 "name": "CustomerActivateInput",1182 "kind": "INPUT_OBJECT",1183 "inputFieldBaseTypes": {1184 "activationToken": "String",1185 "password": "String"1186 }1187 };1188 Object.freeze(CustomerActivateInput.inputFieldBaseTypes);1189 var CustomerActivateInput$1 = Object.freeze(CustomerActivateInput);1190 1191 const CustomerAddressCreatePayload = {1192 "name": "CustomerAddressCreatePayload",1193 "kind": "OBJECT",1194 "fieldBaseTypes": {1195 "customerAddress": "MailingAddress",1196 "userErrors": "UserError"1197 },1198 "implementsNode": false1199 };1200 Object.freeze(CustomerAddressCreatePayload.fieldBaseTypes);1201 var CustomerAddressCreatePayload$1 = Object.freeze(CustomerAddressCreatePayload);1202 1203 const CustomerAddressDeletePayload = {1204 "name": "CustomerAddressDeletePayload",1205 "kind": "OBJECT",1206 "fieldBaseTypes": {1207 "deletedCustomerAddressId": "String",1208 "userErrors": "UserError"1209 },1210 "implementsNode": false1211 };1212 Object.freeze(CustomerAddressDeletePayload.fieldBaseTypes);1213 var CustomerAddressDeletePayload$1 = Object.freeze(CustomerAddressDeletePayload);1214 1215 const CustomerAddressUpdatePayload = {1216 "name": "CustomerAddressUpdatePayload",1217 "kind": "OBJECT",1218 "fieldBaseTypes": {1219 "customerAddress": "MailingAddress",1220 "userErrors": "UserError"1221 },1222 "implementsNode": false1223 };1224 Object.freeze(CustomerAddressUpdatePayload.fieldBaseTypes);1225 var CustomerAddressUpdatePayload$1 = Object.freeze(CustomerAddressUpdatePayload);1226 1227 const CustomerCreatePayload = {1228 "name": "CustomerCreatePayload",1229 "kind": "OBJECT",1230 "fieldBaseTypes": {1231 "customer": "Customer",1232 "userErrors": "UserError"1233 },1234 "implementsNode": false1235 };1236 Object.freeze(CustomerCreatePayload.fieldBaseTypes);1237 var CustomerCreatePayload$1 = Object.freeze(CustomerCreatePayload);1238 1239 const CustomerCreateInput = {1240 "name": "CustomerCreateInput",1241 "kind": "INPUT_OBJECT",1242 "inputFieldBaseTypes": {1243 "firstName": "String",1244 "lastName": "String",1245 "email": "String",1246 "password": "String",1247 "acceptsMarketing": "Boolean"1248 }1249 };1250 Object.freeze(CustomerCreateInput.inputFieldBaseTypes);1251 var CustomerCreateInput$1 = Object.freeze(CustomerCreateInput);1252 1253 const CustomerRecoverPayload = {1254 "name": "CustomerRecoverPayload",1255 "kind": "OBJECT",1256 "fieldBaseTypes": {1257 "userErrors": "UserError"1258 },1259 "implementsNode": false1260 };1261 Object.freeze(CustomerRecoverPayload.fieldBaseTypes);1262 var CustomerRecoverPayload$1 = Object.freeze(CustomerRecoverPayload);1263 1264 const CustomerResetPayload = {1265 "name": "CustomerResetPayload",1266 "kind": "OBJECT",1267 "fieldBaseTypes": {1268 "customer": "Customer",1269 "userErrors": "UserError"1270 },1271 "implementsNode": false1272 };1273 Object.freeze(CustomerResetPayload.fieldBaseTypes);1274 var CustomerResetPayload$1 = Object.freeze(CustomerResetPayload);1275 1276 const CustomerResetInput = {1277 "name": "CustomerResetInput",1278 "kind": "INPUT_OBJECT",1279 "inputFieldBaseTypes": {1280 "resetToken": "String",1281 "password": "String"1282 }1283 };1284 Object.freeze(CustomerResetInput.inputFieldBaseTypes);1285 var CustomerResetInput$1 = Object.freeze(CustomerResetInput);1286 1287 const CustomerUpdatePayload = {1288 "name": "CustomerUpdatePayload",1289 "kind": "OBJECT",1290 "fieldBaseTypes": {1291 "customer": "Customer",1292 "userErrors": "UserError"1293 },1294 "implementsNode": false1295 };1296 Object.freeze(CustomerUpdatePayload.fieldBaseTypes);1297 var CustomerUpdatePayload$1 = Object.freeze(CustomerUpdatePayload);1298 1299 const CustomerUpdateInput = {1300 "name": "CustomerUpdateInput",1301 "kind": "INPUT_OBJECT",1302 "inputFieldBaseTypes": {1303 "firstName": "String",1304 "lastName": "String",1305 "email": "String",1306 "password": "String",1307 "acceptsMarketing": "Boolean"1308 }1309 };1310 Object.freeze(CustomerUpdateInput.inputFieldBaseTypes);1311 var CustomerUpdateInput$1 = Object.freeze(CustomerUpdateInput);1312 1313 const __Schema = {1314 "name": "__Schema",1315 "kind": "OBJECT",1316 "fieldBaseTypes": {1317 "directives": "__Directive",1318 "mutationType": "__Type",1319 "queryType": "__Type",1320 "subscriptionType": "__Type",1321 "types": "__Type"1322 },1323 "implementsNode": false1324 };1325 Object.freeze(__Schema.fieldBaseTypes);1326 var __Schema$1 = Object.freeze(__Schema);1327 1328 const __Type = {1329 "name": "__Type",1330 "kind": "OBJECT",1331 "fieldBaseTypes": {1332 "description": "String",1333 "enumValues": "__EnumValue",1334 "fields": "__Field",1335 "inputFields": "__InputValue",1336 "interfaces": "__Type",1337 "kind": "__TypeKind",1338 "name": "String",1339 "ofType": "__Type",1340 "possibleTypes": "__Type"1341 },1342 "implementsNode": false1343 };1344 Object.freeze(__Type.fieldBaseTypes);1345 var __Type$1 = Object.freeze(__Type);1346 1347 const __TypeKind = {1348 "name": "__TypeKind",1349 "kind": "ENUM"1350 };1351 var __TypeKind$1 = Object.freeze(__TypeKind);1352 1353 const __Field = {1354 "name": "__Field",1355 "kind": "OBJECT",1356 "fieldBaseTypes": {1357 "args": "__InputValue",1358 "deprecationReason": "String",1359 "description": "String",1360 "isDeprecated": "Boolean",1361 "name": "String",1362 "type": "__Type"1363 },1364 "implementsNode": false1365 };1366 Object.freeze(__Field.fieldBaseTypes);1367 var __Field$1 = Object.freeze(__Field);1368 1369 const __InputValue = {1370 "name": "__InputValue",1371 "kind": "OBJECT",1372 "fieldBaseTypes": {1373 "defaultValue": "String",1374 "description": "String",1375 "name": "String",1376 "type": "__Type"1377 },1378 "implementsNode": false1379 };1380 Object.freeze(__InputValue.fieldBaseTypes);1381 var __InputValue$1 = Object.freeze(__InputValue);1382 1383 const __EnumValue = {1384 "name": "__EnumValue",1385 "kind": "OBJECT",1386 "fieldBaseTypes": {1387 "deprecationReason": "String",1388 "description": "String",1389 "isDeprecated": "Boolean",1390 "name": "String"1391 },1392 "implementsNode": false1393 };1394 Object.freeze(__EnumValue.fieldBaseTypes);1395 var __EnumValue$1 = Object.freeze(__EnumValue);1396 1397 const __Directive = {1398 "name": "__Directive",1399 "kind": "OBJECT",1400 "fieldBaseTypes": {1401 "args": "__InputValue",1402 "description": "String",1403 "locations": "__DirectiveLocation",1404 "name": "String",1405 "onField": "Boolean",1406 "onFragment": "Boolean",1407 "onOperation": "Boolean"1408 },1409 "implementsNode": false1410 };1411 Object.freeze(__Directive.fieldBaseTypes);1412 var __Directive$1 = Object.freeze(__Directive);1413 1414 const __DirectiveLocation = {1415 "name": "__DirectiveLocation",1416 "kind": "ENUM"1417 };1418 var __DirectiveLocation$1 = Object.freeze(__DirectiveLocation);1419 1420 const Types = {1421 types: {}1422 };1423 Types.types["Checkout"] = Checkout$1;1424 Types.types["ID"] = ID$1;1425 Types.types["Boolean"] = Boolean$1;1426 Types.types["CheckoutLineItemConnection"] = CheckoutLineItemConnection$1;1427 Types.types["PageInfo"] = PageInfo$1;1428 Types.types["CheckoutLineItemEdge"] = CheckoutLineItemEdge$1;1429 Types.types["String"] = String$1;1430 Types.types["CheckoutLineItem"] = CheckoutLineItem$1;1431 Types.types["ProductVariant"] = ProductVariant$1;1432 Types.types["Float"] = Float$1;1433 Types.types["WeightUnit"] = WeightUnit$1;1434 Types.types["Money"] = Money$1;1435 Types.types["Image"] = Image$1;1436 Types.types["URL"] = URL$1;1437 Types.types["Int"] = Int$1;1438 Types.types["CropRegion"] = CropRegion$1;1439 Types.types["SelectedOption"] = SelectedOption$1;1440 Types.types["Product"] = Product$1;1441 Types.types["CollectionConnection"] = CollectionConnection$1;1442 Types.types["CollectionEdge"] = CollectionEdge$1;1443 Types.types["Collection"] = Collection$1;1444 Types.types["HTML"] = HTML$1;1445 Types.types["DateTime"] = DateTime$1;1446 Types.types["ProductConnection"] = ProductConnection$1;1447 Types.types["ProductEdge"] = ProductEdge$1;1448 Types.types["Node"] = Node$1;1449 Types.types["ImageConnection"] = ImageConnection$1;1450 Types.types["ImageEdge"] = ImageEdge$1;1451 Types.types["SelectedOptionInput"] = SelectedOptionInput$1;1452 Types.types["ProductOption"] = ProductOption$1;1453 Types.types["ProductVariantConnection"] = ProductVariantConnection$1;1454 Types.types["ProductVariantEdge"] = ProductVariantEdge$1;1455 Types.types["Attribute"] = Attribute$1;1456 Types.types["MailingAddress"] = MailingAddress$1;1457 Types.types["ShippingRate"] = ShippingRate$1;1458 Types.types["AvailableShippingRates"] = AvailableShippingRates$1;1459 Types.types["Customer"] = Customer$1;1460 Types.types["MailingAddressConnection"] = MailingAddressConnection$1;1461 Types.types["MailingAddressEdge"] = MailingAddressEdge$1;1462 Types.types["OrderConnection"] = OrderConnection$1;1463 Types.types["OrderEdge"] = OrderEdge$1;1464 Types.types["Order"] = Order$1;1465 Types.types["OrderCancelReason"] = OrderCancelReason$1;1466 Types.types["CurrencyCode"] = CurrencyCode$1;1467 Types.types["OrderDisplayFulfillmentStatus"] = OrderDisplayFulfillmentStatus$1;1468 Types.types["OrderDisplayFinancialStatus"] = OrderDisplayFinancialStatus$1;1469 Types.types["OrderLineItemConnection"] = OrderLineItemConnection$1;1470 Types.types["OrderLineItemEdge"] = OrderLineItemEdge$1;1471 Types.types["OrderLineItem"] = OrderLineItem$1;1472 Types.types["OrderSortKeys"] = OrderSortKeys$1;1473 Types.types["AppliedGiftCard"] = AppliedGiftCard$1;1474 Types.types["QueryRoot"] = QueryRoot$1;1475 Types.types["Shop"] = Shop$1;1476 Types.types["Domain"] = Domain$1;1477 Types.types["ShopPolicy"] = ShopPolicy$1;1478 Types.types["CollectionSortKeys"] = CollectionSortKeys$1;1479 Types.types["ProductSortKeys"] = ProductSortKeys$1;1480 Types.types["Mutation"] = Mutation$1;1481 Types.types["CheckoutAttributesUpdatePayload"] = CheckoutAttributesUpdatePayload$1;1482 Types.types["UserError"] = UserError$1;1483 Types.types["CheckoutAttributesUpdateInput"] = CheckoutAttributesUpdateInput$1;1484 Types.types["AttributeInput"] = AttributeInput$1;1485 Types.types["CheckoutCompleteFreePayload"] = CheckoutCompleteFreePayload$1;1486 Types.types["CheckoutCompleteWithCreditCardPayload"] = CheckoutCompleteWithCreditCardPayload$1;1487 Types.types["Payment"] = Payment$1;1488 Types.types["CreditCard"] = CreditCard$1;1489 Types.types["Transaction"] = Transaction$1;1490 Types.types["TransactionKind"] = TransactionKind$1;1491 Types.types["TransactionStatus"] = TransactionStatus$1;1492 Types.types["CreditCardPaymentInput"] = CreditCardPaymentInput$1;1493 Types.types["MailingAddressInput"] = MailingAddressInput$1;1494 Types.types["CheckoutCompleteWithTokenizedPaymentPayload"] = CheckoutCompleteWithTokenizedPaymentPayload$1;1495 Types.types["TokenizedPaymentInput"] = TokenizedPaymentInput$1;1496 Types.types["CheckoutCreatePayload"] = CheckoutCreatePayload$1;1497 Types.types["CheckoutCreateInput"] = CheckoutCreateInput$1;1498 Types.types["CheckoutLineItemInput"] = CheckoutLineItemInput$1;1499 Types.types["CheckoutCustomerAssociatePayload"] = CheckoutCustomerAssociatePayload$1;1500 Types.types["CheckoutCustomerDisassociatePayload"] = CheckoutCustomerDisassociatePayload$1;1501 Types.types["CheckoutEmailUpdatePayload"] = CheckoutEmailUpdatePayload$1;1502 Types.types["CheckoutGiftCardApplyPayload"] = CheckoutGiftCardApplyPayload$1;1503 Types.types["CheckoutGiftCardRemovePayload"] = CheckoutGiftCardRemovePayload$1;1504 Types.types["CheckoutLineItemsAddPayload"] = CheckoutLineItemsAddPayload$1;1505 Types.types["CheckoutLineItemsRemovePayload"] = CheckoutLineItemsRemovePayload$1;1506 Types.types["CheckoutLineItemsUpdatePayload"] = CheckoutLineItemsUpdatePayload$1;1507 Types.types["CheckoutLineItemUpdateInput"] = CheckoutLineItemUpdateInput$1;1508 Types.types["CheckoutShippingAddressUpdatePayload"] = CheckoutShippingAddressUpdatePayload$1;1509 Types.types["CheckoutShippingLineUpdatePayload"] = CheckoutShippingLineUpdatePayload$1;1510 Types.types["CustomerAccessTokenCreatePayload"] = CustomerAccessTokenCreatePayload$1;1511 Types.types["CustomerAccessToken"] = CustomerAccessToken$1;1512 Types.types["CustomerAccessTokenCreateInput"] = CustomerAccessTokenCreateInput$1;1513 Types.types["CustomerAccessTokenDeletePayload"] = CustomerAccessTokenDeletePayload$1;1514 Types.types["CustomerAccessTokenRenewPayload"] = CustomerAccessTokenRenewPayload$1;1515 Types.types["CustomerActivatePayload"] = CustomerActivatePayload$1;1516 Types.types["CustomerActivateInput"] = CustomerActivateInput$1;1517 Types.types["CustomerAddressCreatePayload"] = CustomerAddressCreatePayload$1;1518 Types.types["CustomerAddressDeletePayload"] = CustomerAddressDeletePayload$1;1519 Types.types["CustomerAddressUpdatePayload"] = CustomerAddressUpdatePayload$1;1520 Types.types["CustomerCreatePayload"] = CustomerCreatePayload$1;1521 Types.types["CustomerCreateInput"] = CustomerCreateInput$1;1522 Types.types["CustomerRecoverPayload"] = CustomerRecoverPayload$1;1523 Types.types["CustomerResetPayload"] = CustomerResetPayload$1;1524 Types.types["CustomerResetInput"] = CustomerResetInput$1;1525 Types.types["CustomerUpdatePayload"] = CustomerUpdatePayload$1;1526 Types.types["CustomerUpdateInput"] = CustomerUpdateInput$1;1527 Types.types["__Schema"] = __Schema$1;1528 Types.types["__Type"] = __Type$1;1529 Types.types["__TypeKind"] = __TypeKind$1;1530 Types.types["__Field"] = __Field$1;1531 Types.types["__InputValue"] = __InputValue$1;1532 Types.types["__EnumValue"] = __EnumValue$1;1533 Types.types["__Directive"] = __Directive$1;1534 Types.types["__DirectiveLocation"] = __DirectiveLocation$1;1535 Types.queryType = "QueryRoot";1536 Types.mutationType = "Mutation";1537 Types.subscriptionType = null;1538 Object.freeze(Types.types);1539 var types = Object.freeze(Types);1540 1541 export default types;...
regress-refreeze-same-map.js
Source:regress-refreeze-same-map.js
2// Use of this source code is governed by a BSD-style license that can be3// found in the LICENSE file.4// Flags: --allow-natives-syntax5// precondition6assertTrue(%HaveSameMap(Object.freeze({}), Object.freeze({})));7assertTrue(%HaveSameMap(Object.freeze({a: 1}), Object.freeze({a: 1})));8assertTrue(%HaveSameMap(Object.freeze([]), Object.freeze([])));9assertTrue(%HaveSameMap(Object.freeze([1,2]), Object.freeze([1,2])));10assertTrue(%HaveSameMap(Object.seal({}), Object.seal({})));11assertTrue(%HaveSameMap(Object.seal({a: 1}), Object.seal({a: 1})));12assertTrue(%HaveSameMap(Object.seal([]), Object.seal([])));13assertTrue(%HaveSameMap(Object.seal([1,2]), Object.seal([1,2])));14// refreezing an already frozen obj does not keep adding transitions15assertTrue(%HaveSameMap(Object.freeze({}), Object.freeze( Object.freeze({}) )));16assertTrue(%HaveSameMap(Object.freeze({a: 1}), Object.freeze( Object.freeze({a: 1}) )));17assertTrue(%HaveSameMap(Object.freeze([]), Object.freeze( Object.freeze([]) )));18assertTrue(%HaveSameMap(Object.freeze([1,2]), Object.freeze( Object.freeze([1,2]) )));19// resealing a sealed object is idempotent20assertTrue(%HaveSameMap(Object.seal({}), Object.seal( Object.seal({}) )));21assertTrue(%HaveSameMap(Object.seal({a: 1}), Object.seal( Object.seal({a: 1}) )));22assertTrue(%HaveSameMap(Object.seal([]), Object.seal( Object.seal([]) )));23assertTrue(%HaveSameMap(Object.seal([1,2]), Object.seal( Object.seal([1,2]) )));24// sealing a frozen object is idempotent25assertTrue(%HaveSameMap(Object.freeze({}), Object.seal( Object.freeze({}) )));26assertTrue(%HaveSameMap(Object.freeze({a: 1}), Object.seal( Object.freeze({a: 1}) )));27assertTrue(%HaveSameMap(Object.freeze([]), Object.seal( Object.freeze([]) )));28assertTrue(%HaveSameMap(Object.freeze([1,2]), Object.seal( Object.freeze([1,2]) )));29// freezing a sealed empty is idempotent30assertTrue(%HaveSameMap(Object.freeze(Object.seal({})), Object.seal({})));31// sealing a unextensible empty object is idempotent...
Using AI Code Generation
1const sinon = require('sinon');2const chai = require('chai');3const expect = chai.expect;4const assert = chai.assert;5const sinonChai = require('sinon-chai');6chai.use(sinonChai);7describe('testing', () => {8 it('should test', () => {9 const obj = { a: 1, b: 2 };10 const spy = sinon.spy();11 const proxy = new Proxy(obj, {12 });13 proxy.a = 3;14 expect(spy).to.have.been.calledWith(obj, 'a', 3, proxy);15 });16});17const sinon = require('sinon');18const chai = require('chai');19const expect = chai.expect;20const assert = chai.assert;21const sinonChai = require('sinon-chai');22chai.use(sinonChai);23describe('testing', () => {24 it('should test', () => {25 const obj = { a: 1, b: 2 };26 const spy = sinon.spy();27 const proxy = new Proxy(obj, {28 });29 proxy.a = 3;30 expect(spy).to.have.been.calledWith(obj, 'a', 3, proxy);31 });32});33const sinon = require('sinon');34const chai = require('chai');35const expect = chai.expect;36const assert = chai.assert;37const sinonChai = require('sinon-chai');38chai.use(sinonChai);39describe('testing', () => {40 it('should test', () => {41 const obj = { a: 1, b: 2 };42 const spy = sinon.spy();43 const proxy = new Proxy(obj, {44 });45 proxy.a = 3;46 expect(spy).to.have.been.calledWith(obj, 'a', 3, proxy);47 });48});49const sinon = require('sinon');50const chai = require('chai');51const expect = chai.expect;52const assert = chai.assert;53const sinonChai = require('sinon-chai');54chai.use(sinonChai);
Using AI Code Generation
1import sinon from 'sinon';2import { expect } from 'chai';3import { freeze } from 'sinon';4import { stub } from 'sinon';5import { spy } from 'sinon';6import { mock } from 'sinon';7import { useFakeTimers } from 'sinon';8import { useFakeXMLHttpRequest } from 'sinon';9const obj = {10 method: function() {11 return true;12 }13};14const spy = sinon.spy(obj, 'method');15spy();16expect(spy.called).to.equal(true);17expect(obj.method()).to.equal(true);18const obj = {19 method: function() {20 return true;21 }22};23const spy = sinon.spy(obj, 'method');24spy();25expect(spy.called).to.equal(true);26expect(obj.method()).to.equal(true);27const obj = {28 method: function() {29 return true;30 }31};32const spy = sinon.spy(obj, 'method');33spy();34expect(spy.called).to.equal(true);35expect(obj.method()).to.equal(true);36const obj = {37 method: function() {38 return true;39 }40};41const spy = sinon.spy(obj, 'method');42spy();43expect(spy.called).to.equal(true);44expect(obj.method()).to.equal(true);45const obj = {46 method: function() {47 return true;48 }49};50const spy = sinon.spy(obj, 'method');51spy();52expect(spy.called).to.equal(true);53expect(obj.method()).to.equal(true);54const obj = {55 method: function() {56 return true;57 }58};59const spy = sinon.spy(obj, 'method');60spy();61expect(spy.called).to.equal(true);62expect(obj.method()).to.equal(true);63const obj = {64 method: function() {65 return true;66 }67};68const spy = sinon.spy(obj, 'method');69spy();70expect(spy.called).to.equal(true);71expect(obj.method()).to.equal(true);72const obj = {73 method: function() {74 return true;75 }76};
Using AI Code Generation
1var sinon = require('sinon');2var assert = require('assert');3var obj = { a: 1, b: 2 };4sinon.stub(obj, 'a', 3);5assert.equal(obj.a, 3);6obj.a = 4;7assert.equal(obj.a, 3);8Object.freeze(obj);9obj.a = 5;10assert.equal(obj.a, 3);
Using AI Code Generation
1var sinon = require('sinon');2var assert = require('assert');3var obj = {4};5var spy = sinon.spy(obj, 'a');6Object.freeze(obj);7obj.a = 3;8assert(spy.calledOnce);9assert.equal(obj.a, 1);10var sinon = require('sinon');11var assert = require('assert');12var obj = {13};14var spy = sinon.spy(obj, 'a');15Object.freeze(obj);16obj.a = 3;17assert(spy.calledOnce);18assert.equal(obj.a, 1);19var sinon = require('sinon');20var assert = require('assert');21var obj = {22};23var spy = sinon.spy(obj, 'a');24Object.freeze(obj);25obj.a = 3;26assert(spy.calledOnce);27assert.equal(obj.a, 1);28var sinon = require('sinon');29var assert = require('assert');30var obj = {31};32var spy = sinon.spy(obj, 'a');33Object.freeze(obj);34obj.a = 3;35assert(spy.calledOnce);36assert.equal(obj.a, 1);37var sinon = require('sinon');38var assert = require('assert');39var obj = {40};41var spy = sinon.spy(obj, 'a');42Object.freeze(obj);43obj.a = 3;44assert(spy.calledOnce);45assert.equal(obj.a, 1);46var sinon = require('sinon');47var assert = require('assert');48var obj = {49};50var spy = sinon.spy(obj, 'a');51Object.freeze(obj);52obj.a = 3;53assert(spy.calledOnce);54assert.equal(obj.a, 1);
Using AI Code Generation
1const sinon = require('sinon');2const myObj = {3 myMethod: () => {4 return 'test';5 }6};7const spy = sinon.spy(myObj, 'myMethod');8myObj.myMethod();9myObj.myMethod();10Object.freeze(myObj);11myObj.myMethod();12const sinon = require('sinon');13const myObj = {14 myMethod: () => {15 return 'test';16 }17};18const spy = sinon.spy(myObj, 'myMethod');19myObj.myMethod();20myObj.myMethod();21Object.freeze(myObj);22myObj.myMethod();23const sinon = require('sinon');24const myObj = {25 myMethod: () => {26 return 'test';27 }28};29const spy = sinon.spy(myObj, 'myMethod');30myObj.myMethod();31myObj.myMethod();32Object.freeze(myObj);33myObj.myMethod();34const sinon = require('sinon');35const myObj = {36 myMethod: () => {37 return 'test';38 }39};40const spy = sinon.spy(myObj, 'myMethod');41myObj.myMethod();42myObj.myMethod();43Object.freeze(myObj);44myObj.myMethod();45const sinon = require('sinon');46const myObj = {47 myMethod: () => {48 return 'test';49 }50};51const spy = sinon.spy(myObj, 'myMethod');
Using AI Code Generation
1var sinon = require('sinon');2var assert = require('chai').assert;3var obj = {4};5obj.bar = 43;6obj.baz = 44;7sinon.freeze(obj);8assert.throws(function() {9 obj.foo = 1;10}, TypeError);11assert.throws(function() {12 obj.bar = 1;13}, TypeError);14assert.throws(function() {15 obj.baz = 1;16}, TypeError);17assert.throws(function() {18 delete obj.foo;19}, TypeError);20assert.throws(function() {21 delete obj.bar;22}, TypeError);23assert.throws(function() {24 delete obj.baz;25}, TypeError);
Using AI Code Generation
1var sinon = require('sinon');2var obj = {3};4sinon.stub(obj, 'someMethod').returns('some value');5var sinon = require('sinon');6var obj = {7};8sinon.stub(obj, 'someMethod').returns('some value');9var sinon = require('sinon');10var obj = {11};12sinon.stub(obj, 'someMethod').returns('some value');13var sinon = require('sinon');14var obj = {15};16sinon.stub(obj, 'someMethod').returns('some value');17var sinon = require('sinon');18var obj = {19};20sinon.stub(obj, 'someMethod').returns('some value');21var sinon = require('sinon');22var obj = {23};24sinon.stub(obj, 'someMethod').returns('some value');25var sinon = require('sinon');26var obj = {27};28sinon.stub(obj, 'someMethod').returns('some value');29var sinon = require('sinon');30var obj = {
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!