@merchi/sdk 1.40.2 → 1.42.1
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/entities/cart.js +40 -0
- package/dist/entities/cart.test.js +21 -0
- package/dist/entities/domain.js +4 -0
- package/dist/entities/domain.test.js +10 -0
- package/dist/entities/invoice.js +4 -0
- package/dist/entities/job.js +40 -0
- package/dist/entities/job.test.js +25 -0
- package/dist/entity.js +6 -0
- package/dist/request.js +11 -3
- package/dist/request.test.js +21 -2
- package/package.json +1 -1
- package/src/entities/cart.test.ts +23 -0
- package/src/entities/cart.ts +30 -0
- package/src/entities/domain.test.ts +14 -0
- package/src/entities/domain.ts +3 -0
- package/src/entities/invoice.ts +3 -0
- package/src/entities/job.test.ts +27 -0
- package/src/entities/job.ts +30 -0
- package/src/entity.ts +8 -0
- package/src/request.test.ts +23 -2
- package/src/request.ts +12 -3
- package/.turbo/turbo-test.log +0 -849
- package/coverage/clover.xml +0 -5057
- package/coverage/coverage-final.json +0 -133
- package/coverage/lcov-report/base.css +0 -224
- package/coverage/lcov-report/block-navigation.js +0 -87
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +0 -191
- package/coverage/lcov-report/prettify.css +0 -1
- package/coverage/lcov-report/prettify.js +0 -2
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +0 -210
- package/coverage/lcov-report/src/constants/auto_assign_production_on_actions.ts.html +0 -103
- package/coverage/lcov-report/src/constants/call_to_actions.ts.html +0 -127
- package/coverage/lcov-report/src/constants/discount_types.ts.html +0 -100
- package/coverage/lcov-report/src/constants/domain_types.ts.html +0 -121
- package/coverage/lcov-report/src/constants/errors.ts.html +0 -181
- package/coverage/lcov-report/src/constants/event_types.ts.html +0 -100
- package/coverage/lcov-report/src/constants/field_types.ts.html +0 -133
- package/coverage/lcov-report/src/constants/index.html +0 -551
- package/coverage/lcov-report/src/constants/index.ts.html +0 -238
- package/coverage/lcov-report/src/constants/input_types.ts.html +0 -124
- package/coverage/lcov-report/src/constants/inventory_statuses.ts.html +0 -103
- package/coverage/lcov-report/src/constants/invoice_types.ts.html +0 -100
- package/coverage/lcov-report/src/constants/item_types.ts.html +0 -100
- package/coverage/lcov-report/src/constants/job/drafting_status.ts.html +0 -106
- package/coverage/lcov-report/src/constants/job/index.html +0 -176
- package/coverage/lcov-report/src/constants/job/payment_status.ts.html +0 -106
- package/coverage/lcov-report/src/constants/job/production_status.ts.html +0 -121
- package/coverage/lcov-report/src/constants/job/shipment_status.ts.html +0 -118
- package/coverage/lcov-report/src/constants/job/supply_chain_request_status.ts.html +0 -103
- package/coverage/lcov-report/src/constants/job_priorities.ts.html +0 -103
- package/coverage/lcov-report/src/constants/job_status.ts.html +0 -232
- package/coverage/lcov-report/src/constants/job_types.ts.html +0 -133
- package/coverage/lcov-report/src/constants/notification_sections.ts.html +0 -124
- package/coverage/lcov-report/src/constants/notification_types.ts.html +0 -385
- package/coverage/lcov-report/src/constants/notification_urgencies.ts.html +0 -106
- package/coverage/lcov-report/src/constants/payment_types.ts.html +0 -115
- package/coverage/lcov-report/src/constants/platform.ts.html +0 -103
- package/coverage/lcov-report/src/constants/product_types.ts.html +0 -163
- package/coverage/lcov-report/src/constants/rights.ts.html +0 -100
- package/coverage/lcov-report/src/constants/robots_meta_directives.ts.html +0 -118
- package/coverage/lcov-report/src/constants/roles.ts.html +0 -223
- package/coverage/lcov-report/src/constants/shipment_companies.ts.html +0 -142
- package/coverage/lcov-report/src/constants/shipment_services.ts.html +0 -94
- package/coverage/lcov-report/src/constants/system_roles.ts.html +0 -94
- package/coverage/lcov-report/src/constants/theme_status.ts.html +0 -100
- package/coverage/lcov-report/src/constants/user_types.ts.html +0 -136
- package/coverage/lcov-report/src/constants/white_label_accessibilities.ts.html +0 -103
- package/coverage/lcov-report/src/cookie.ts.html +0 -133
- package/coverage/lcov-report/src/entities/address.ts.html +0 -280
- package/coverage/lcov-report/src/entities/agent_conversation.ts.html +0 -202
- package/coverage/lcov-report/src/entities/agent_skill.ts.html +0 -382
- package/coverage/lcov-report/src/entities/agent_skill_approval.ts.html +0 -163
- package/coverage/lcov-report/src/entities/agent_skill_version.ts.html +0 -277
- package/coverage/lcov-report/src/entities/agent_token_usage.ts.html +0 -349
- package/coverage/lcov-report/src/entities/assignment.ts.html +0 -382
- package/coverage/lcov-report/src/entities/automatic_payment_relationship.ts.html +0 -172
- package/coverage/lcov-report/src/entities/bank.ts.html +0 -220
- package/coverage/lcov-report/src/entities/cart.ts.html +0 -391
- package/coverage/lcov-report/src/entities/cart_item.ts.html +0 -340
- package/coverage/lcov-report/src/entities/cart_shipment_group.ts.html +0 -148
- package/coverage/lcov-report/src/entities/cart_shipment_quote.ts.html +0 -184
- package/coverage/lcov-report/src/entities/category.ts.html +0 -262
- package/coverage/lcov-report/src/entities/company.ts.html +0 -1276
- package/coverage/lcov-report/src/entities/company_invitation.ts.html +0 -184
- package/coverage/lcov-report/src/entities/country_tax.ts.html +0 -223
- package/coverage/lcov-report/src/entities/discount.ts.html +0 -235
- package/coverage/lcov-report/src/entities/discount_group.ts.html +0 -214
- package/coverage/lcov-report/src/entities/domain.ts.html +0 -3349
- package/coverage/lcov-report/src/entities/domain_chat_settings.ts.html +0 -331
- package/coverage/lcov-report/src/entities/domain_invitation.ts.html +0 -193
- package/coverage/lcov-report/src/entities/domain_tag.ts.html +0 -211
- package/coverage/lcov-report/src/entities/draft.ts.html +0 -322
- package/coverage/lcov-report/src/entities/draft_comment.ts.html +0 -274
- package/coverage/lcov-report/src/entities/draft_preview.ts.html +0 -196
- package/coverage/lcov-report/src/entities/draft_preview_layer.ts.html +0 -148
- package/coverage/lcov-report/src/entities/draft_template.ts.html +0 -328
- package/coverage/lcov-report/src/entities/email_address.ts.html +0 -157
- package/coverage/lcov-report/src/entities/email_counter.ts.html +0 -145
- package/coverage/lcov-report/src/entities/enrolled_domain.ts.html +0 -205
- package/coverage/lcov-report/src/entities/exchange_rate.ts.html +0 -151
- package/coverage/lcov-report/src/entities/file.ts.html +0 -580
- package/coverage/lcov-report/src/entities/index.html +0 -1271
- package/coverage/lcov-report/src/entities/internal_tag.ts.html +0 -238
- package/coverage/lcov-report/src/entities/inventory.ts.html +0 -274
- package/coverage/lcov-report/src/entities/inventory_group.ts.html +0 -193
- package/coverage/lcov-report/src/entities/inventory_unit_variation.ts.html +0 -172
- package/coverage/lcov-report/src/entities/invoice.ts.html +0 -661
- package/coverage/lcov-report/src/entities/item.ts.html +0 -262
- package/coverage/lcov-report/src/entities/job.ts.html +0 -1288
- package/coverage/lcov-report/src/entities/job_comment.ts.html +0 -244
- package/coverage/lcov-report/src/entities/job_note.ts.html +0 -205
- package/coverage/lcov-report/src/entities/job_operation_log.ts.html +0 -208
- package/coverage/lcov-report/src/entities/matching_inventory.ts.html +0 -172
- package/coverage/lcov-report/src/entities/notification.ts.html +0 -403
- package/coverage/lcov-report/src/entities/payment.ts.html +0 -316
- package/coverage/lcov-report/src/entities/payment_device.ts.html +0 -175
- package/coverage/lcov-report/src/entities/phone_number.ts.html +0 -193
- package/coverage/lcov-report/src/entities/product.ts.html +0 -1543
- package/coverage/lcov-report/src/entities/product_form.ts.html +0 -238
- package/coverage/lcov-report/src/entities/product_form_version.ts.html +0 -238
- package/coverage/lcov-report/src/entities/product_review.ts.html +0 -748
- package/coverage/lcov-report/src/entities/production_comment.ts.html +0 -244
- package/coverage/lcov-report/src/entities/quote.ts.html +0 -505
- package/coverage/lcov-report/src/entities/quote_item.ts.html +0 -298
- package/coverage/lcov-report/src/entities/reminder.ts.html +0 -307
- package/coverage/lcov-report/src/entities/session.ts.html +0 -169
- package/coverage/lcov-report/src/entities/shipment.ts.html +0 -673
- package/coverage/lcov-report/src/entities/shipment_item.ts.html +0 -130
- package/coverage/lcov-report/src/entities/shipment_item_fulfillment.ts.html +0 -130
- package/coverage/lcov-report/src/entities/shipment_log.ts.html +0 -196
- package/coverage/lcov-report/src/entities/shipment_method.ts.html +0 -268
- package/coverage/lcov-report/src/entities/shipment_method_variation.ts.html +0 -202
- package/coverage/lcov-report/src/entities/short_url.ts.html +0 -193
- package/coverage/lcov-report/src/entities/subscription_plan.ts.html +0 -304
- package/coverage/lcov-report/src/entities/supply_domain.ts.html +0 -166
- package/coverage/lcov-report/src/entities/support_conversation.ts.html +0 -280
- package/coverage/lcov-report/src/entities/support_message.ts.html +0 -175
- package/coverage/lcov-report/src/entities/system_role.ts.html +0 -136
- package/coverage/lcov-report/src/entities/theme.ts.html +0 -331
- package/coverage/lcov-report/src/entities/theme_css_setting.ts.html +0 -154
- package/coverage/lcov-report/src/entities/user.ts.html +0 -1369
- package/coverage/lcov-report/src/entities/user_company.ts.html +0 -166
- package/coverage/lcov-report/src/entities/variation.ts.html +0 -277
- package/coverage/lcov-report/src/entities/variation_field.ts.html +0 -889
- package/coverage/lcov-report/src/entities/variation_fields_option.ts.html +0 -406
- package/coverage/lcov-report/src/entities/variation_option.ts.html +0 -259
- package/coverage/lcov-report/src/entities/variations_group.ts.html +0 -208
- package/coverage/lcov-report/src/entity.ts.html +0 -3379
- package/coverage/lcov-report/src/index.html +0 -221
- package/coverage/lcov-report/src/index.ts.html +0 -652
- package/coverage/lcov-report/src/merchi.ts.html +0 -1420
- package/coverage/lcov-report/src/pricing/discount.ts.html +0 -136
- package/coverage/lcov-report/src/pricing/estimate.ts.html +0 -1015
- package/coverage/lcov-report/src/pricing/index.html +0 -206
- package/coverage/lcov-report/src/pricing/index.ts.html +0 -106
- package/coverage/lcov-report/src/pricing/inventory.ts.html +0 -352
- package/coverage/lcov-report/src/pricing/matrix.ts.html +0 -736
- package/coverage/lcov-report/src/pricing/round.ts.html +0 -166
- package/coverage/lcov-report/src/pricing/visibility.ts.html +0 -418
- package/coverage/lcov-report/src/request.ts.html +0 -673
- package/coverage/lcov-report/src/test_util.ts.html +0 -139
- package/coverage/lcov-report/src/toasts.ts.html +0 -187
- package/coverage/lcov-report/src/util/float.ts.html +0 -121
- package/coverage/lcov-report/src/util/index.html +0 -161
- package/coverage/lcov-report/src/util/index.ts.html +0 -106
- package/coverage/lcov-report/src/util/query_string.ts.html +0 -124
- package/coverage/lcov-report/src/util/validation.ts.html +0 -91
- package/coverage/lcov-report/src/uuid.ts.html +0 -109
- package/coverage/lcov.info +0 -7758
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
<!doctype html>
|
|
3
|
-
<html lang="en">
|
|
4
|
-
|
|
5
|
-
<head>
|
|
6
|
-
<title>Code coverage report for src/constants/system_roles.ts</title>
|
|
7
|
-
<meta charset="utf-8" />
|
|
8
|
-
<link rel="stylesheet" href="../../prettify.css" />
|
|
9
|
-
<link rel="stylesheet" href="../../base.css" />
|
|
10
|
-
<link rel="shortcut icon" type="image/x-icon" href="../../favicon.png" />
|
|
11
|
-
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
12
|
-
<style type='text/css'>
|
|
13
|
-
.coverage-summary .sorter {
|
|
14
|
-
background-image: url(../../sort-arrow-sprite.png);
|
|
15
|
-
}
|
|
16
|
-
</style>
|
|
17
|
-
</head>
|
|
18
|
-
|
|
19
|
-
<body>
|
|
20
|
-
<div class='wrapper'>
|
|
21
|
-
<div class='pad1'>
|
|
22
|
-
<h1><a href="../../index.html">All files</a> / <a href="index.html">src/constants</a> system_roles.ts</h1>
|
|
23
|
-
<div class='clearfix'>
|
|
24
|
-
|
|
25
|
-
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">100% </span>
|
|
27
|
-
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>2/2</span>
|
|
29
|
-
</div>
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">100% </span>
|
|
34
|
-
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>2/2</span>
|
|
36
|
-
</div>
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
<div class='fl pad1y space-right2'>
|
|
40
|
-
<span class="strong">100% </span>
|
|
41
|
-
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>1/1</span>
|
|
43
|
-
</div>
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">100% </span>
|
|
48
|
-
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>2/2</span>
|
|
50
|
-
</div>
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
</div>
|
|
54
|
-
<p class="quiet">
|
|
55
|
-
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
|
|
56
|
-
</p>
|
|
57
|
-
<template id="filterTemplate">
|
|
58
|
-
<div class="quiet">
|
|
59
|
-
Filter:
|
|
60
|
-
<input type="search" id="fileSearch">
|
|
61
|
-
</div>
|
|
62
|
-
</template>
|
|
63
|
-
</div>
|
|
64
|
-
<div class='status-line high'></div>
|
|
65
|
-
<pre><table class="coverage">
|
|
66
|
-
<tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
|
|
67
|
-
<a name='L2'></a><a href='#L2'>2</a>
|
|
68
|
-
<a name='L3'></a><a href='#L3'>3</a>
|
|
69
|
-
<a name='L4'></a><a href='#L4'>4</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">3x</span>
|
|
70
|
-
<span class="cline-any cline-yes">3x</span>
|
|
71
|
-
<span class="cline-any cline-neutral"> </span>
|
|
72
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">export enum SystemRoles {
|
|
73
|
-
SYSTEM_COMPONENT_BUILDER = 1
|
|
74
|
-
}
|
|
75
|
-
</pre></td></tr></table></pre>
|
|
76
|
-
|
|
77
|
-
<div class='push'></div><!-- for sticky footer -->
|
|
78
|
-
</div><!-- /wrapper -->
|
|
79
|
-
<div class='footer quiet pad2 space-top1 center small'>
|
|
80
|
-
Code coverage generated by
|
|
81
|
-
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
82
|
-
at 2026-09-17T00:23:15.194Z
|
|
83
|
-
</div>
|
|
84
|
-
<script src="../../prettify.js"></script>
|
|
85
|
-
<script>
|
|
86
|
-
window.onload = function () {
|
|
87
|
-
prettyPrint();
|
|
88
|
-
};
|
|
89
|
-
</script>
|
|
90
|
-
<script src="../../sorter.js"></script>
|
|
91
|
-
<script src="../../block-navigation.js"></script>
|
|
92
|
-
</body>
|
|
93
|
-
</html>
|
|
94
|
-
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
<!doctype html>
|
|
3
|
-
<html lang="en">
|
|
4
|
-
|
|
5
|
-
<head>
|
|
6
|
-
<title>Code coverage report for src/constants/theme_status.ts</title>
|
|
7
|
-
<meta charset="utf-8" />
|
|
8
|
-
<link rel="stylesheet" href="../../prettify.css" />
|
|
9
|
-
<link rel="stylesheet" href="../../base.css" />
|
|
10
|
-
<link rel="shortcut icon" type="image/x-icon" href="../../favicon.png" />
|
|
11
|
-
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
12
|
-
<style type='text/css'>
|
|
13
|
-
.coverage-summary .sorter {
|
|
14
|
-
background-image: url(../../sort-arrow-sprite.png);
|
|
15
|
-
}
|
|
16
|
-
</style>
|
|
17
|
-
</head>
|
|
18
|
-
|
|
19
|
-
<body>
|
|
20
|
-
<div class='wrapper'>
|
|
21
|
-
<div class='pad1'>
|
|
22
|
-
<h1><a href="../../index.html">All files</a> / <a href="index.html">src/constants</a> theme_status.ts</h1>
|
|
23
|
-
<div class='clearfix'>
|
|
24
|
-
|
|
25
|
-
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">100% </span>
|
|
27
|
-
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>4/4</span>
|
|
29
|
-
</div>
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">100% </span>
|
|
34
|
-
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>2/2</span>
|
|
36
|
-
</div>
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
<div class='fl pad1y space-right2'>
|
|
40
|
-
<span class="strong">100% </span>
|
|
41
|
-
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>1/1</span>
|
|
43
|
-
</div>
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">100% </span>
|
|
48
|
-
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>4/4</span>
|
|
50
|
-
</div>
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
</div>
|
|
54
|
-
<p class="quiet">
|
|
55
|
-
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
|
|
56
|
-
</p>
|
|
57
|
-
<template id="filterTemplate">
|
|
58
|
-
<div class="quiet">
|
|
59
|
-
Filter:
|
|
60
|
-
<input type="search" id="fileSearch">
|
|
61
|
-
</div>
|
|
62
|
-
</template>
|
|
63
|
-
</div>
|
|
64
|
-
<div class='status-line high'></div>
|
|
65
|
-
<pre><table class="coverage">
|
|
66
|
-
<tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
|
|
67
|
-
<a name='L2'></a><a href='#L2'>2</a>
|
|
68
|
-
<a name='L3'></a><a href='#L3'>3</a>
|
|
69
|
-
<a name='L4'></a><a href='#L4'>4</a>
|
|
70
|
-
<a name='L5'></a><a href='#L5'>5</a>
|
|
71
|
-
<a name='L6'></a><a href='#L6'>6</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">72x</span>
|
|
72
|
-
<span class="cline-any cline-yes">72x</span>
|
|
73
|
-
<span class="cline-any cline-yes">72x</span>
|
|
74
|
-
<span class="cline-any cline-yes">72x</span>
|
|
75
|
-
<span class="cline-any cline-neutral"> </span>
|
|
76
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">export enum ThemeStatus {
|
|
77
|
-
NOT_VALID = 1,
|
|
78
|
-
VALID_BUT_NOT_UPDATED = 2,
|
|
79
|
-
VALID_AND_UPDATED = 3
|
|
80
|
-
}
|
|
81
|
-
</pre></td></tr></table></pre>
|
|
82
|
-
|
|
83
|
-
<div class='push'></div><!-- for sticky footer -->
|
|
84
|
-
</div><!-- /wrapper -->
|
|
85
|
-
<div class='footer quiet pad2 space-top1 center small'>
|
|
86
|
-
Code coverage generated by
|
|
87
|
-
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
88
|
-
at 2026-09-17T00:23:15.194Z
|
|
89
|
-
</div>
|
|
90
|
-
<script src="../../prettify.js"></script>
|
|
91
|
-
<script>
|
|
92
|
-
window.onload = function () {
|
|
93
|
-
prettyPrint();
|
|
94
|
-
};
|
|
95
|
-
</script>
|
|
96
|
-
<script src="../../sorter.js"></script>
|
|
97
|
-
<script src="../../block-navigation.js"></script>
|
|
98
|
-
</body>
|
|
99
|
-
</html>
|
|
100
|
-
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
<!doctype html>
|
|
3
|
-
<html lang="en">
|
|
4
|
-
|
|
5
|
-
<head>
|
|
6
|
-
<title>Code coverage report for src/constants/user_types.ts</title>
|
|
7
|
-
<meta charset="utf-8" />
|
|
8
|
-
<link rel="stylesheet" href="../../prettify.css" />
|
|
9
|
-
<link rel="stylesheet" href="../../base.css" />
|
|
10
|
-
<link rel="shortcut icon" type="image/x-icon" href="../../favicon.png" />
|
|
11
|
-
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
12
|
-
<style type='text/css'>
|
|
13
|
-
.coverage-summary .sorter {
|
|
14
|
-
background-image: url(../../sort-arrow-sprite.png);
|
|
15
|
-
}
|
|
16
|
-
</style>
|
|
17
|
-
</head>
|
|
18
|
-
|
|
19
|
-
<body>
|
|
20
|
-
<div class='wrapper'>
|
|
21
|
-
<div class='pad1'>
|
|
22
|
-
<h1><a href="../../index.html">All files</a> / <a href="index.html">src/constants</a> user_types.ts</h1>
|
|
23
|
-
<div class='clearfix'>
|
|
24
|
-
|
|
25
|
-
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">100% </span>
|
|
27
|
-
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>16/16</span>
|
|
29
|
-
</div>
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">100% </span>
|
|
34
|
-
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>2/2</span>
|
|
36
|
-
</div>
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
<div class='fl pad1y space-right2'>
|
|
40
|
-
<span class="strong">100% </span>
|
|
41
|
-
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>1/1</span>
|
|
43
|
-
</div>
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">100% </span>
|
|
48
|
-
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>16/16</span>
|
|
50
|
-
</div>
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
</div>
|
|
54
|
-
<p class="quiet">
|
|
55
|
-
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
|
|
56
|
-
</p>
|
|
57
|
-
<template id="filterTemplate">
|
|
58
|
-
<div class="quiet">
|
|
59
|
-
Filter:
|
|
60
|
-
<input type="search" id="fileSearch">
|
|
61
|
-
</div>
|
|
62
|
-
</template>
|
|
63
|
-
</div>
|
|
64
|
-
<div class='status-line high'></div>
|
|
65
|
-
<pre><table class="coverage">
|
|
66
|
-
<tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
|
|
67
|
-
<a name='L2'></a><a href='#L2'>2</a>
|
|
68
|
-
<a name='L3'></a><a href='#L3'>3</a>
|
|
69
|
-
<a name='L4'></a><a href='#L4'>4</a>
|
|
70
|
-
<a name='L5'></a><a href='#L5'>5</a>
|
|
71
|
-
<a name='L6'></a><a href='#L6'>6</a>
|
|
72
|
-
<a name='L7'></a><a href='#L7'>7</a>
|
|
73
|
-
<a name='L8'></a><a href='#L8'>8</a>
|
|
74
|
-
<a name='L9'></a><a href='#L9'>9</a>
|
|
75
|
-
<a name='L10'></a><a href='#L10'>10</a>
|
|
76
|
-
<a name='L11'></a><a href='#L11'>11</a>
|
|
77
|
-
<a name='L12'></a><a href='#L12'>12</a>
|
|
78
|
-
<a name='L13'></a><a href='#L13'>13</a>
|
|
79
|
-
<a name='L14'></a><a href='#L14'>14</a>
|
|
80
|
-
<a name='L15'></a><a href='#L15'>15</a>
|
|
81
|
-
<a name='L16'></a><a href='#L16'>16</a>
|
|
82
|
-
<a name='L17'></a><a href='#L17'>17</a>
|
|
83
|
-
<a name='L18'></a><a href='#L18'>18</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">72x</span>
|
|
84
|
-
<span class="cline-any cline-yes">72x</span>
|
|
85
|
-
<span class="cline-any cline-yes">72x</span>
|
|
86
|
-
<span class="cline-any cline-yes">72x</span>
|
|
87
|
-
<span class="cline-any cline-yes">72x</span>
|
|
88
|
-
<span class="cline-any cline-yes">72x</span>
|
|
89
|
-
<span class="cline-any cline-yes">72x</span>
|
|
90
|
-
<span class="cline-any cline-yes">72x</span>
|
|
91
|
-
<span class="cline-any cline-yes">72x</span>
|
|
92
|
-
<span class="cline-any cline-yes">72x</span>
|
|
93
|
-
<span class="cline-any cline-yes">72x</span>
|
|
94
|
-
<span class="cline-any cline-yes">72x</span>
|
|
95
|
-
<span class="cline-any cline-yes">72x</span>
|
|
96
|
-
<span class="cline-any cline-yes">72x</span>
|
|
97
|
-
<span class="cline-any cline-yes">72x</span>
|
|
98
|
-
<span class="cline-any cline-yes">72x</span>
|
|
99
|
-
<span class="cline-any cline-neutral"> </span>
|
|
100
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">export enum UserType {
|
|
101
|
-
PUBLIC = 0,
|
|
102
|
-
CLIENT_GUEST = 1, // A user who has not oppted in for a user account
|
|
103
|
-
CLIENT_DOMAIN = 2, // A user who is a client of one domain
|
|
104
|
-
CLIENT_MULTIPLE_DOMAINS = 3, // A user who is a client of multiple domains
|
|
105
|
-
CLIENT_MERCHI = 4, // A user has a client profile with Merchi
|
|
106
|
-
SELLER_FREE_MERCHI = 5, // A user who has opened a seller store through Merchi
|
|
107
|
-
SELLER_FREE_DOMAIN = 6, // A user who has opened a seller store through a domain/supplier
|
|
108
|
-
SELLER_PAID = 7, // A user who is paying for a seller store
|
|
109
|
-
SELLER_PAID_MULTIPLE_DOMAINS = 8, // A user who is paying for multiple seller stores
|
|
110
|
-
SUPPLIER_THIRD_PARTY = 9, // A user who has a "domain supplier" domain
|
|
111
|
-
SUPPLIER_RESTRICTED = 10, // A user who has a restricted supply domain
|
|
112
|
-
SUPPLIER_MERCHI = 11, // A user who has a supply domain which has been verified by Merchi
|
|
113
|
-
UNRESTRICTED = 12, // A user who has a domain which is unrestricted
|
|
114
|
-
SHOPIFY_REFERENCE = 13, // A user who makes order from shopify and linked to our system
|
|
115
|
-
RESERVED_FROM_SOCIAL = 14, // A user crawled from Social network
|
|
116
|
-
}
|
|
117
|
-
</pre></td></tr></table></pre>
|
|
118
|
-
|
|
119
|
-
<div class='push'></div><!-- for sticky footer -->
|
|
120
|
-
</div><!-- /wrapper -->
|
|
121
|
-
<div class='footer quiet pad2 space-top1 center small'>
|
|
122
|
-
Code coverage generated by
|
|
123
|
-
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
124
|
-
at 2026-09-17T00:23:15.194Z
|
|
125
|
-
</div>
|
|
126
|
-
<script src="../../prettify.js"></script>
|
|
127
|
-
<script>
|
|
128
|
-
window.onload = function () {
|
|
129
|
-
prettyPrint();
|
|
130
|
-
};
|
|
131
|
-
</script>
|
|
132
|
-
<script src="../../sorter.js"></script>
|
|
133
|
-
<script src="../../block-navigation.js"></script>
|
|
134
|
-
</body>
|
|
135
|
-
</html>
|
|
136
|
-
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
<!doctype html>
|
|
3
|
-
<html lang="en">
|
|
4
|
-
|
|
5
|
-
<head>
|
|
6
|
-
<title>Code coverage report for src/constants/white_label_accessibilities.ts</title>
|
|
7
|
-
<meta charset="utf-8" />
|
|
8
|
-
<link rel="stylesheet" href="../../prettify.css" />
|
|
9
|
-
<link rel="stylesheet" href="../../base.css" />
|
|
10
|
-
<link rel="shortcut icon" type="image/x-icon" href="../../favicon.png" />
|
|
11
|
-
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
12
|
-
<style type='text/css'>
|
|
13
|
-
.coverage-summary .sorter {
|
|
14
|
-
background-image: url(../../sort-arrow-sprite.png);
|
|
15
|
-
}
|
|
16
|
-
</style>
|
|
17
|
-
</head>
|
|
18
|
-
|
|
19
|
-
<body>
|
|
20
|
-
<div class='wrapper'>
|
|
21
|
-
<div class='pad1'>
|
|
22
|
-
<h1><a href="../../index.html">All files</a> / <a href="index.html">src/constants</a> white_label_accessibilities.ts</h1>
|
|
23
|
-
<div class='clearfix'>
|
|
24
|
-
|
|
25
|
-
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">100% </span>
|
|
27
|
-
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>4/4</span>
|
|
29
|
-
</div>
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">100% </span>
|
|
34
|
-
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>2/2</span>
|
|
36
|
-
</div>
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
<div class='fl pad1y space-right2'>
|
|
40
|
-
<span class="strong">100% </span>
|
|
41
|
-
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>1/1</span>
|
|
43
|
-
</div>
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">100% </span>
|
|
48
|
-
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>4/4</span>
|
|
50
|
-
</div>
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
</div>
|
|
54
|
-
<p class="quiet">
|
|
55
|
-
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
|
|
56
|
-
</p>
|
|
57
|
-
<template id="filterTemplate">
|
|
58
|
-
<div class="quiet">
|
|
59
|
-
Filter:
|
|
60
|
-
<input type="search" id="fileSearch">
|
|
61
|
-
</div>
|
|
62
|
-
</template>
|
|
63
|
-
</div>
|
|
64
|
-
<div class='status-line high'></div>
|
|
65
|
-
<pre><table class="coverage">
|
|
66
|
-
<tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
|
|
67
|
-
<a name='L2'></a><a href='#L2'>2</a>
|
|
68
|
-
<a name='L3'></a><a href='#L3'>3</a>
|
|
69
|
-
<a name='L4'></a><a href='#L4'>4</a>
|
|
70
|
-
<a name='L5'></a><a href='#L5'>5</a>
|
|
71
|
-
<a name='L6'></a><a href='#L6'>6</a>
|
|
72
|
-
<a name='L7'></a><a href='#L7'>7</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">2x</span>
|
|
73
|
-
<span class="cline-any cline-yes">2x</span>
|
|
74
|
-
<span class="cline-any cline-yes">2x</span>
|
|
75
|
-
<span class="cline-any cline-yes">2x</span>
|
|
76
|
-
<span class="cline-any cline-neutral"> </span>
|
|
77
|
-
<span class="cline-any cline-neutral"> </span>
|
|
78
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">export enum WhiteLabelAccessibility {
|
|
79
|
-
UNREACHABLE = 0,
|
|
80
|
-
NO_CERTIFICATE = 1,
|
|
81
|
-
REACHABLE = 2,
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
</pre></td></tr></table></pre>
|
|
85
|
-
|
|
86
|
-
<div class='push'></div><!-- for sticky footer -->
|
|
87
|
-
</div><!-- /wrapper -->
|
|
88
|
-
<div class='footer quiet pad2 space-top1 center small'>
|
|
89
|
-
Code coverage generated by
|
|
90
|
-
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
91
|
-
at 2026-09-17T00:23:15.194Z
|
|
92
|
-
</div>
|
|
93
|
-
<script src="../../prettify.js"></script>
|
|
94
|
-
<script>
|
|
95
|
-
window.onload = function () {
|
|
96
|
-
prettyPrint();
|
|
97
|
-
};
|
|
98
|
-
</script>
|
|
99
|
-
<script src="../../sorter.js"></script>
|
|
100
|
-
<script src="../../block-navigation.js"></script>
|
|
101
|
-
</body>
|
|
102
|
-
</html>
|
|
103
|
-
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
<!doctype html>
|
|
3
|
-
<html lang="en">
|
|
4
|
-
|
|
5
|
-
<head>
|
|
6
|
-
<title>Code coverage report for src/cookie.ts</title>
|
|
7
|
-
<meta charset="utf-8" />
|
|
8
|
-
<link rel="stylesheet" href="../prettify.css" />
|
|
9
|
-
<link rel="stylesheet" href="../base.css" />
|
|
10
|
-
<link rel="shortcut icon" type="image/x-icon" href="../favicon.png" />
|
|
11
|
-
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
12
|
-
<style type='text/css'>
|
|
13
|
-
.coverage-summary .sorter {
|
|
14
|
-
background-image: url(../sort-arrow-sprite.png);
|
|
15
|
-
}
|
|
16
|
-
</style>
|
|
17
|
-
</head>
|
|
18
|
-
|
|
19
|
-
<body>
|
|
20
|
-
<div class='wrapper'>
|
|
21
|
-
<div class='pad1'>
|
|
22
|
-
<h1><a href="../index.html">All files</a> / <a href="index.html">src</a> cookie.ts</h1>
|
|
23
|
-
<div class='clearfix'>
|
|
24
|
-
|
|
25
|
-
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">100% </span>
|
|
27
|
-
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>2/2</span>
|
|
29
|
-
</div>
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">100% </span>
|
|
34
|
-
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>0/0</span>
|
|
36
|
-
</div>
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
<div class='fl pad1y space-right2'>
|
|
40
|
-
<span class="strong">100% </span>
|
|
41
|
-
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>1/1</span>
|
|
43
|
-
</div>
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">100% </span>
|
|
48
|
-
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>2/2</span>
|
|
50
|
-
</div>
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
</div>
|
|
54
|
-
<p class="quiet">
|
|
55
|
-
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
|
|
56
|
-
</p>
|
|
57
|
-
<template id="filterTemplate">
|
|
58
|
-
<div class="quiet">
|
|
59
|
-
Filter:
|
|
60
|
-
<input type="search" id="fileSearch">
|
|
61
|
-
</div>
|
|
62
|
-
</template>
|
|
63
|
-
</div>
|
|
64
|
-
<div class='status-line high'></div>
|
|
65
|
-
<pre><table class="coverage">
|
|
66
|
-
<tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
|
|
67
|
-
<a name='L2'></a><a href='#L2'>2</a>
|
|
68
|
-
<a name='L3'></a><a href='#L3'>3</a>
|
|
69
|
-
<a name='L4'></a><a href='#L4'>4</a>
|
|
70
|
-
<a name='L5'></a><a href='#L5'>5</a>
|
|
71
|
-
<a name='L6'></a><a href='#L6'>6</a>
|
|
72
|
-
<a name='L7'></a><a href='#L7'>7</a>
|
|
73
|
-
<a name='L8'></a><a href='#L8'>8</a>
|
|
74
|
-
<a name='L9'></a><a href='#L9'>9</a>
|
|
75
|
-
<a name='L10'></a><a href='#L10'>10</a>
|
|
76
|
-
<a name='L11'></a><a href='#L11'>11</a>
|
|
77
|
-
<a name='L12'></a><a href='#L12'>12</a>
|
|
78
|
-
<a name='L13'></a><a href='#L13'>13</a>
|
|
79
|
-
<a name='L14'></a><a href='#L14'>14</a>
|
|
80
|
-
<a name='L15'></a><a href='#L15'>15</a>
|
|
81
|
-
<a name='L16'></a><a href='#L16'>16</a>
|
|
82
|
-
<a name='L17'></a><a href='#L17'>17</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">71x</span>
|
|
83
|
-
<span class="cline-any cline-neutral"> </span>
|
|
84
|
-
<span class="cline-any cline-neutral"> </span>
|
|
85
|
-
<span class="cline-any cline-neutral"> </span>
|
|
86
|
-
<span class="cline-any cline-neutral"> </span>
|
|
87
|
-
<span class="cline-any cline-neutral"> </span>
|
|
88
|
-
<span class="cline-any cline-neutral"> </span>
|
|
89
|
-
<span class="cline-any cline-neutral"> </span>
|
|
90
|
-
<span class="cline-any cline-neutral"> </span>
|
|
91
|
-
<span class="cline-any cline-neutral"> </span>
|
|
92
|
-
<span class="cline-any cline-neutral"> </span>
|
|
93
|
-
<span class="cline-any cline-neutral"> </span>
|
|
94
|
-
<span class="cline-any cline-neutral"> </span>
|
|
95
|
-
<span class="cline-any cline-neutral"> </span>
|
|
96
|
-
<span class="cline-any cline-yes">795x</span>
|
|
97
|
-
<span class="cline-any cline-neutral"> </span>
|
|
98
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">export function getCookie(name: string) {
|
|
99
|
-
// code might be executed during SSR
|
|
100
|
-
// istanbul ignore next
|
|
101
|
-
if (typeof document !== 'undefined') {
|
|
102
|
-
const searchPrefix = name + '=',
|
|
103
|
-
cookies = document.cookie.split(';');
|
|
104
|
-
for (let i = 0; i < cookies.length; ++i) {
|
|
105
|
-
let cookie = cookies[i];
|
|
106
|
-
cookie = cookie.replace(/^\s*/, '');
|
|
107
|
-
if (cookie.indexOf(searchPrefix) === 0) {
|
|
108
|
-
return cookie.substring(searchPrefix.length, cookie.length);
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
return undefined;
|
|
113
|
-
}
|
|
114
|
-
</pre></td></tr></table></pre>
|
|
115
|
-
|
|
116
|
-
<div class='push'></div><!-- for sticky footer -->
|
|
117
|
-
</div><!-- /wrapper -->
|
|
118
|
-
<div class='footer quiet pad2 space-top1 center small'>
|
|
119
|
-
Code coverage generated by
|
|
120
|
-
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
121
|
-
at 2026-09-17T00:23:15.194Z
|
|
122
|
-
</div>
|
|
123
|
-
<script src="../prettify.js"></script>
|
|
124
|
-
<script>
|
|
125
|
-
window.onload = function () {
|
|
126
|
-
prettyPrint();
|
|
127
|
-
};
|
|
128
|
-
</script>
|
|
129
|
-
<script src="../sorter.js"></script>
|
|
130
|
-
<script src="../block-navigation.js"></script>
|
|
131
|
-
</body>
|
|
132
|
-
</html>
|
|
133
|
-
|